sequential coding | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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.

4th Mar 2024, 6:34 PM
Danial Taherpour
Danial Taherpour - avatar
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.
4th Mar 2024, 8:05 PM
Tibor Santa
Tibor Santa - avatar
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.
4th Mar 2024, 8:41 PM
Rain
Rain - avatar