+ 1
Why getting indentation error while using if statement on python(android)
4 ответов
+ 3
show us the code, or we can't help you ... 😬
+ 1
You need to insert some space after an if-clause.
So not:
if 2>1:
print('yep')
But:
if 2>1:
print('yep')
+ 1
x=int(input('First number'))
if x>4:
print(' x greater than 4 ')
This is an example..yets it gives expected an indented block error
+ 1
x = int(input('First number'))
if x > 4:
print('c greater than 4')