0
What Is Wrong In These Code
y=int(input()) if y<=0 : print("shh") elif y>=1 and y<10 : print ("Ra!"*y) elif y>=10 : print ("High Five")
5 Respuestas
+ 3
Akash bro,
Please put Python in the tags ☝
To improve language context clarity 👍
https://code.sololearn.com/W3uiji9X28C1/?ref=app
+ 2
Some Typo
+ 2
Missing an = in y<10 should be y<=10
+ 1
y=int(input())
if y<=0 :
print("shh")
elif y>=1 and y<=10 :
print ("Ra!"*y)
elif y>10 :
print ("High Five")
It works fine now.
Check the modification in condition parts. It should be <=10 in 1st elif and >10 in 2nd elif
+ 1
Thanks sarada lakshmi and Jason Kennedy