+ 1

python 3

hi all! I am new to learn Python, how to remove or delete the last line during coding? Thanks!!

5th Feb 2018, 10:16 AM
Akhror
Akhror - avatar
4 odpowiedzi
+ 1
I'm not sure what you mean by this.. It's normal for a .py file to end in a empty line.
5th Feb 2018, 2:19 PM
Markus Kaleton
Markus Kaleton - avatar
+ 1
if you write in a shell instead of an editor i dont think you can take back mistakes.
5th Feb 2018, 2:58 PM
Markus Kaleton
Markus Kaleton - avatar
0
Hello mate, thanks for consideration to my question, I mean that I wrote codes in the python shell and line 11th I did mistake syntax error, should I write codes again from beginning ? Or is it possible to delete my last mistakes in order to continue my coding? I hope you understand what I mean, coz I am new to python.
5th Feb 2018, 2:45 PM
Akhror
Akhror - avatar
0
you should use the editor in idle, writing code in shell can be frustrating. you can activate editor mode in one of the dropdowns in the idle window
5th Feb 2018, 2:50 PM
Markus Kaleton
Markus Kaleton - avatar