+ 1

Please how can i move to the next line and write my code without running the program in python?

Python

23rd May 2020, 10:29 PM
David Umoh
David Umoh - avatar
5 odpowiedzi
+ 2
David Umoh please clarify your question. I believe you are referring to using \n as in a line break print("You begin a line here and \nand this started the next line")
23rd May 2020, 10:34 PM
BroFar
BroFar - avatar
+ 3
David Umoh please show us the code for clarification as to what you are asking ...
23rd May 2020, 11:18 PM
BroFar
BroFar - avatar
+ 3
Is this problem occurring when you play around with Python on your computer? Then it probably means that you're in interpreter mode, where each line of code is executed the moment you hit enter. You need to write your code into a file, ending with .py, and then run it.
23rd May 2020, 11:43 PM
HonFu
HonFu - avatar
+ 2
I'll try it out thanks a lot
23rd May 2020, 10:54 PM
David Umoh
David Umoh - avatar
+ 1
Enter key runs the code instead of going to the next line for me to continue coding, how do I go about it
23rd May 2020, 11:16 PM
David Umoh
David Umoh - avatar