+ 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 ответов
+ 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.