0

what error "indentation error:expected an indentation block mean"?

error appear when write code by python

25th May 2017, 8:42 PM
Jack G. Rizkallah
Jack G. Rizkallah - avatar
2 ответов
0
Python uses indentation to define blocks. For example, to show which statements are controlled by a for or if statement, the controlled statements are indented. So when typing these examples you need to indent the lines after the for, if or while. The indentation can be any consistent white space. Four spaces is a very common indent. When typing at the interactive prompt I usually use two spaces just because it's easier to type.
25th May 2017, 8:48 PM
Sanga Rahul
Sanga Rahul - avatar
0
@Sanga Raoul, i think that's 4 spaces else you have got an error
25th May 2017, 9:22 PM
MBZH31
MBZH31 - avatar