+ 2

What is the error in my code (cheer creator)?

def fun(n): if n>10: return(("a high five")) elif 0<n<=10: return(n*('Ra!')) else: if n<1: return('shh') n=int(input()) print(fun(n))

8th Jul 2020, 4:34 PM
Aditya Srivastava
Aditya Srivastava - avatar
3 odpowiedzi
+ 2
return(("High Five")) #Instead #return(("a high five"))
8th Jul 2020, 5:11 PM
᮴Ridwan_
᮴Ridwan_ - avatar
+ 6
Task Given the number of yards that your team moved forward, output either 'High Five' (for over 10), '
8th Jul 2020, 5:14 PM
᮴Ridwan_
᮴Ridwan_ - avatar
+ 1
3rd condition not a setisfied in cheer creator code coach
8th Jul 2020, 4:35 PM
Aditya Srivastava
Aditya Srivastava - avatar