How can I solve cheer creator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I solve cheer creator

I got the first, second fourth and fifth case but didn't get the third case. I'm using python. Attempt: https://code.sololearn.com/c85m25f0EjFG/?ref=app

9th Jun 2020, 6:45 PM
Chinyere Unamba
Chinyere Unamba - avatar
7 Answers
+ 4
I found out my mistake. Instead of High Five I typed High five.
9th Jun 2020, 10:56 PM
Chinyere Unamba
Chinyere Unamba - avatar
+ 3
You should have typed High Five
11th Jun 2020, 9:02 AM
Ace Coder
Ace Coder - avatar
+ 1
Please send your code
9th Jun 2020, 6:50 PM
Leonid Selivanov
Leonid Selivanov - avatar
+ 1
Insert your code so we can fix the error
9th Jun 2020, 9:47 PM
Hisham YUM 🇲🇦
Hisham YUM 🇲🇦 - avatar
9th Jun 2020, 10:33 PM
Chinyere Unamba
Chinyere Unamba - avatar
+ 1
First there is a case that you don't need bcz there is just 3 cases (if elif and else ) i don't see why you use four cases yeard= int(input('')) if yeard<1 : print('shh') elif 1<=yeard<=10: print('Ra!'*yeard) else: print("High Five") Check it now Check this now
9th Jun 2020, 10:45 PM
Hisham YUM 🇲🇦
Hisham YUM 🇲🇦 - avatar
0
Has reduced statments https://code.sololearn.com/c0yCr565EZMC/?ref=app But your code working well at all
9th Jun 2020, 10:41 PM
Leonid Selivanov
Leonid Selivanov - avatar