Python 2.7 calculating remainder with division and two inputs
<p>It's a question for my assignment in intro to programming and I'm not quite understanding how to do this without the use of Ifs because our prof just wants basic modulus and division.  Im trying to get 3 outputs.  balloons greater than children (which works), balloons equal to children which just outputs 0 and 0. and balloons less than children, which doesnt work.</p>

<pre><code># number of balloons
children = int(input("Enter number of balloons: "))

# number of children coming to the party
balloons = int(input("Enter the number of children coming to the party: "))

# number of balloons each child will receive
receive_balloons = int(balloons % children)

# number of balloons leftover for decorations
remaining = children % balloons

print("{:s}""{:d}""{:s}""{:d}".format("Number of balloons  for each child is ", receive_balloons, " and the amount leftover is ", remaining))

print(balloons, "", (remaining))
</code></pre>

<p>You need to use the // operator for the number of balloons per child and % for remaining balloons</p>

<pre><code># number of balloons
balloons = int(input("Enter number of balloons: "))

# number of children coming to the party
children = int(input("Enter the number of children coming to the party: "))

receive_balloons, remaining = (balloons // children, balloons % children)

print("{:s}""{:d}""{:s}""{:d}".format("Number of balloons  for each child is ", receive_balloons, " and the amount leftover is ", remaining))

print(balloons, "", (remaining))
</code></pre>

python python-2.7 modulus