0

I wrote if function but when I write print("xxx") it gives error. What is the wrong?

5th Oct 2016, 8:42 AM
Hasan ER
Hasan ER - avatar
4 Antworten
+ 1
if 10>5: print('xxx') use either 2 or 4 spaces. generally 4 spaces are used for indenting.
5th Oct 2016, 9:25 AM
Luke Armstrong
0
show your code please
5th Oct 2016, 9:05 AM
Luke Armstrong
0
>>>if 10>5: ...print("hello world") and says expected an indented block.
5th Oct 2016, 9:14 AM
Hasan ER
Hasan ER - avatar
0
thanks so much :)
5th Oct 2016, 9:29 AM
Hasan ER
Hasan ER - avatar