+ 3
Why if condition not working??
age= int(input("enter your age")) if(age==18): print("you win") else: print("you lose") Output Indentation error : unexpected indent
8 Answers
+ 5
Berba Malek
You should indent your code like this:
if age == 18:
print ('win')
else:
print ('lose')
+ 2
Berba Malek
Use TAB to give space because it takes 4 blank character at once.
+ 1
Working
Your code should be properly indent.
+ 1
I did and not working
+ 1
How much space should I leave?
+ 1
Thanks
+ 1
I just try it
0
else:
print("you lose")
There should be an indent in the else block