Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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 Respostas
+ 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.