+ 1
Popsicles problem?
6 Respostas
0
First show your attempt than we will help you in your code.We couldn't write on your behalf.
So try yourself first and than ask about your confusion in code
0
siblings = int(input())
popsicles = int(input())
print ('give away' if popsicles % siblings ==0 else 'eat them yourself')
only your logic is wrong you have to take popsicles%siblings as I mentioned.Rest of your code is right.
Working now
- 1
I want the solution for the popsicles problem in python language
- 1
siblings = int(input())
popsicles = int(input())
print ('give away' if siblings % popsicles ==0 else 'eat them yourself')
- 1
siblings = int(input())
popsicles = int(input())
#your code goes here
if popsicles % siblings == 0:
print('give away')
else:
print('eat them yourself')
- 3
What is your question?
Explain your question and use relevants tags for more calarity.