+ 1

Why won't solo learn accept my solution concerning the popsicles problem by code coach?

I don't know how to share link so let me just post the code here: s = input ('Please enter the number of siblings:') print ('There are', s,'number of siblings') p = input ('Please enter the number of popsicles in the box:') print ('There are', p,'number of popsicles') x = int(s) y = int(p) if y % x== 0: print('Give away') else: print('Eat them yourself')

25th May 2020, 8:33 PM
Emmanuel Bett
Emmanuel Bett - avatar
3 ответов
0
Would you mind trying out the problem?
25th May 2020, 8:37 PM
Emmanuel Bett
Emmanuel Bett - avatar
0
The Code Coach looks for the output *exactly* as written in the description. So lose the unnecessary print statements and correct the letter case in the main ones.
25th May 2020, 9:32 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar