Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Stef the Dutchman  (Read 84886 times)

0 Members and 1 Guest are viewing this topic.

Stef

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Mac OS
    Stef the Dutchman
    « on: June 07, 2021, 12:02:42 PM »
    Hello people,

    My name is Stef and i'm from the Netherlands, so before commenting on my languages, i do appologise for my bad grammar at this moment and i'm not used to write in a other language. I understand, speak en etc, just my spelling is terrible at this moment.  ;D

    I'm here do to the recomandation in the chat and hope to find some help and interesting people all over the world. As it come's to my skills, i'm some kind of noob and not specialised in somthing or whatever. At this moment i hafe two days of stuggle's with python and juist try everything i can imagine. Yes, it is horrible how to start and realy fun to see how things works. My focus is on making a weather station with a RPi so there is a lot to learn like soldering and etrc. Lukkely i got me some help from Quantos in the chat for my firt experiance in soldering and this was realy helpfull.

    Now i am figgering out how to write to .txt with Python, there are soooooo many ways and nothing works like i want it to do. I'll think that this is de best moment for me to ask help on the forum. Why here? There are not procrammers in the Netherlands who are activ on forum's or in chats. So it can take more than a week for (or non) a reaction what is verry disapointing sometimes.

    Well, thank you for reading,
    Greetingssss Stef




    TheWaffle



      Hopeful
    • Thanked: 4
      • Yes
    • Computer: Specs
    • Experience: Beginner
    • OS: Linux variant
    Re: Stef the Dutchman
    « Reply #1 on: November 11, 2021, 08:49:15 PM »
    Hello Stef, if you return...

    Is this what you are looking for?
    Code: [Select]
    jordan-pc:[jordanmw]:/tmp$ python
    Python 3.9.7 (default, Oct 10 2021, 16:50:02)
    [GCC 11.1.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> fd = open("test.txt", "w")
    >>> print("hello python", file=fd)
    >>> fd.close()
    >>> exit()
    jordan-pc:[jordanmw]:/tmp$ cat test.txt
    hello python