0
why isn't this working?
yards=int(input()) if yards >=10: print("High Five") elif yards <=1: print("shh") elif yards <=10 and yards >=1: print("Ra!") else: print("Ra!"*yards)
2 Antworten
0
OK thank you
- 1
Problem description says
if input>10 : high five
input<1 : shh
otherwise output Ra! * input times..
You included >= 10, <=1,
and
Make 3rd if to else like
else : yards <=10 and yards >=1:
print("Ra!"*yards)