+ 1
why is my code showing error
my intention is to give an input number and then print the statement https://code.sololearn.com/cBAhR7N8jxR8
7 odpowiedzi
+ 6
AMOGHA. A. K., there is no syntax error in the code. There is a logical issue in the if statements.
+ 4
spam = 7
if spam > 5:
print("five")
if spam > 8:
print("eight")
Also post the code in description through insert code option from next time
+ 1
x=int(input('enter a number\n'))
if x == 5:
print('five')
if x<5:
print('not five')
+ 1
Please try
😊😊
0
oh sorry here is my code:
https://code.sololearn.com/cBAhR7N8jxR8