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")

22nd May 2021, 5:43 AM
Akash Kawale
5 Réponses
+ 3
Akash bro, Please put Python in the tags ☝ To improve language context clarity 👍 https://code.sololearn.com/W3uiji9X28C1/?ref=app
22nd May 2021, 6:41 AM
Ipang
+ 2
Some Typo
22nd May 2021, 5:46 AM
Oma Falk
Oma Falk - avatar
+ 2
Missing an = in y<10 should be y<=10
22nd May 2021, 6:02 AM
Jason Kennedy
+ 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
22nd May 2021, 5:59 AM
sarada lakshmi
sarada lakshmi - avatar
22nd May 2021, 6:09 AM
Akash Kawale