+ 1

why no output

x=9 if x > 5: if x < 8: print(x+1) else: print:(x-1) else: print(x)

6th Jan 2022, 12:39 PM
Vivian Anoemuah
Vivian Anoemuah - avatar
3 Answers
+ 3
Remove ':' in print:(x-1)
6th Jan 2022, 12:42 PM
Jayakrishna 🇼🇳
+ 3
Because of the colon in between 'print' and '(x-1)'
6th Jan 2022, 12:42 PM
Slick
Slick - avatar
+ 2
thank you guys
6th Jan 2022, 12:48 PM
Vivian Anoemuah
Vivian Anoemuah - avatar