+ 1
why no output
x=9 if x > 5: if x < 8: print(x+1) else: print:(x-1) else: print(x)
3 Answers
+ 3
Remove ':'
in print:(x-1)
+ 3
Because of the colon in between 'print' and '(x-1)'
+ 2
thank you guys
x=9 if x > 5: if x < 8: print(x+1) else: print:(x-1) else: print(x)