+ 5
Tab/spaces in python is like ";" in C/C++
28th Sep 2020, 11:54 AM
Arsenic
Arsenic - avatar
28th Sep 2020, 12:55 PM
Ore
Ore - avatar
+ 2
Your program should be indented correctly, because python uses that to mark scope of any statements.
28th Sep 2020, 11:58 AM
Arsenic
Arsenic - avatar
+ 2
🎃#H P 22ℱ🎃 No. Indentation (aka use of tabs or spaces) is simply to delimit blocks in python. In some languages you might use curly braces {} to achieve the same. Java 👇 if (true) { spam(); } Python 👇 if True: spam(); ^ 4 spaces recommended
28th Sep 2020, 6:29 PM
Ore
Ore - avatar
0
using a good text editor plays an important rule right there, sometimes you might not know how much tabs you need, not like html or other languages that ignore the way your code is written.
28th Sep 2020, 12:12 PM
Mohamed Bahoussa
Mohamed Bahoussa - avatar