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)

5th Jul 2020, 8:02 PM
Joshua Younge
Joshua Younge - avatar
3 ответов
0
OK thank you
5th Jul 2020, 8:50 PM
Joshua Younge
Joshua Younge - avatar
- 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)
5th Jul 2020, 8:12 PM
Jayakrishna 🇮🇳