+ 16

How do I move to the next line in python console without executing.

12th Aug 2019, 8:29 AM
Meny Evolving
Meny Evolving - avatar
6 Respostas
+ 9
The python interactive shell and console is good for running python instructions one at a time. To write an entire python program you need to use the file editor. To open the file editor: open python IDLE, select File -> New Window and type your code there.
14th Aug 2019, 8:35 AM
Meny Evolving
Meny Evolving - avatar
+ 12
13th Aug 2019, 2:13 AM
Meny Evolving
Meny Evolving - avatar
+ 12
Thanks HonFu
13th Aug 2019, 2:14 AM
Meny Evolving
Meny Evolving - avatar
+ 4
The escape character '\n' indicates a newline print("My name \n is Thomas") Output: My name is Thomas
12th Aug 2019, 8:32 AM
Trigger
Trigger - avatar
+ 4
'\n' to create a new line without being executed by a interpreter
7th Sep 2019, 6:13 AM
7racl
7racl - avatar
+ 3
If you want to continue a line of code in the next line, you do it like this: if 1==1 and 2!=3 \ and True!=False: print('Whatever')
12th Aug 2019, 8:40 AM
HonFu
HonFu - avatar