+ 9
To be more precise, the code is *interpreted* top to bottom. So if you define a function or a class at the beginning of your program, it is interpreted but not executed until called. A block of code is a single semantic group of lines of code - a class definition, a for loop, an if statement - with all indented lines that come afterwards.
31st Mar 2017, 9:53 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 4
By default code executes from top to bottom (After every spacing, etc). But there are special cases where it doesnt for a few lines in a code.
31st Mar 2017, 9:03 PM
Wen Qin
Wen Qin - avatar
+ 1
top to bottom
31st Mar 2017, 8:59 PM
LordHill
LordHill - avatar
0
Just adding is code contains a error (not syntax error) code is normal interpreted before the error line.
1st Apr 2017, 12:49 AM
nextco
nextco - avatar