+ 1
sequential coding
hey there! I have tried learning python for a week. and i have this problem of giving sequential orders. i dont know how to go to the next line. as i push 'enter' it runs the code.
2 Réponses
0
You might be using python's interactive code interpreter. Usually when this is the case, you have a prompt like >>> at the beginning of the line.
To write more complex programs (longer than a line), you can just write it in any text editor and save it as .py file, then run it using the python command.
It is better to use an IDE (integrated development environment) which is a special software to author, test and run code. There are many of those, one called IDLE comes bundled with the Python installation, but most people probably use Visual Studio Code, or Jetbrains PyCharm.
0
If you're talking about entering multiple lines of input in the playground, hit the enter key after each line except the last. Then tap Submit once.