Which lines are executed when a Python file is run? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which lines are executed when a Python file is run?

19th May 2017, 7:15 PM
Michael Baldwin
Michael Baldwin - avatar
5 Answers
+ 8
All of them* :) * - unless you tell Python not to - after a number of times or if a condition is met/not met, etc. or in comments
19th May 2017, 7:17 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
line 1 line 2 line 3 line 4 line 5 etc etc
19th May 2017, 8:43 PM
LordHill
LordHill - avatar
+ 1
answer is Every line
30th Aug 2018, 3:29 PM
Ammar Muhammad Abubakar
Ammar Muhammad Abubakar - avatar
0
every line
3rd Jan 2019, 8:24 PM
soliana
0
everyline
11th Apr 2020, 10:40 AM
KARAMI Tahr
KARAMI  Tahr - avatar