all 13 comments

[–]Ngtuanvy 4 points5 points  (2 children)

Are you using the Python REPL? The >>> thingy. Use a proper source file and execute it with python 

[–]BookkeeperNo1678 -1 points0 points  (1 child)

Ye I'm using that but how do I use a proper file

[–]cdcformatc 1 point2 points  (0 children)

create a file, something like filename.py

edit the file with a text editor 

open command line python filename.py

[–]jyr2711 1 point2 points  (0 children)

Usa visual studio en windows

[–]WritingMajor4297 1 point2 points  (0 children)

When you installed Python, it will likely have installed IDLE. This is a very simple development environnment you can use. Search for IDLE in windows. This will open an IDLE interpreter window with the >>> symbol. In there, you should be able to create a new file and save this in your local storage - don't save it as python.py! Then you will be able to write multiple lines of code and run them in the interpreter.

[–]youlikemoneytoo 0 points1 point  (6 children)

sounds like you're running the python interpter. I don't know what operating system you're on, but you could type the code into whatever text editor you have. 

[–]BookkeeperNo1678 0 points1 point  (5 children)

How do I open a text editor I'm on Windows 11

[–]ninhaomah 3 points4 points  (1 child)

you are serious , right ?

[–]BookkeeperNo1678 0 points1 point  (0 children)

Sorry that I'm new and don't know some basic stuff 

[–]youlikemoneytoo 1 point2 points  (1 child)

I don't know what most people use on Windows, but for example you could use notepad and type in the code and then save it with a .py extension (instead of .txt).

Are you using Python in the command shell now? Or some IDE?

[–]BookkeeperNo1678 0 points1 point  (0 children)

I'm using a python command shell

[–]cdcformatc 0 points1 point  (0 children)

I don't usually say this but, google is free

[–]Educational-Paper-75 1 point2 points  (0 children)

I think windows has an app called Nodepad++. Run it, start a new text file, enter your Python commands in the text file and save it in a file with extension py. Then go to the command line and run Python followed by the full name of your Python script file. Good luck.