+ 7
yard =int(input()) if (yard>=10): print("High five") elif(yard==0): print("shh") elif(yard>1)and (yard<10): print("Ra!"*yard)
What's the wrong
12 ответов
+ 18
Check the condition again
yard =int(input())
if (yard>10):
print("High Five")
elif(yard<1):
print("shh")
elif(yard>=1)and (yard<=10):
print("Ra!"*yard)
Chandu187 also, f should be uppercase in `High Five`
Akash Prasad it's a code coach challenge https://www.sololearn.com/coach/20?ref=app
Hope you know python is a case sensitive language :)
+ 5
Little reminder that the title isn't the correct place for code and that the tags are used to identify the question.
You can also link code from the code playground to make it easier for other to check out your code.
+ 3
y=int(input())
if y<=0 :
print("shh")
elif y>=1 and y<=10 :
print ("Ra!"*y)
elif y>10 :
print ("High Five")
Shh is for not any yard =0
Ra! is for more than one 1 and less than 10
High five is for more than 10 yard
+ 2
num_of_yard = int(input())
if (num_of_yard > 10):
print("High Five")
elif (num_of_yard < 1):
print("shh")
else:
print(num_of_yard * "Ra!")
+ 2
yard==0 is a Boolean comparison and should not be used for integer comparison 🌻
+ 2
Space 🌌
+ 1
Simba why F not f
it should matter because H is there
0
In the string "High five", you have to type "five" in uppercase.
0
https://code.sololearn.com/conQT64m1kIx/?ref=app
Here's my take on this
- 2
Hello
- 3
Line 6 should be : elif((yard>1)and(yard<10)):