+ 3
Python code coach
This is my code coach problem siblings = int(input()) popsicles = int(input()) #your code goes here n = int(input()) m = int(input()); print('n/m') print ('Eat them yourself') So I should be working on inputting two integers and output 'Eat then yourselfâ or 'Shareâ and everything I do they keep saying thereâs an error đ please tell me what the heck am I doing wrong đ€Ł
6 Answers
+ 5
Actually ur condition stmt is wrong.
It should go like:
if popsicles%siblings==0:
print("give away")
else:
print ("eat them yourself")
+ 5
Wlcm. Keep Coding
+ 2
Thank you guys đ
I knew everything I was doing didnât make sense
+ 2
QTWizard, I wanted to solve the problem and fix the error i made
0
Add eval before 'n/m' or remove the quotes.
print(eval('n/m'))
Or print(n/m)
0
Sorry, i didn't know if you wanted to solve the problem or the error.