0
Python related challenge
I want a program which would return max number of people getting the money. Eg: There is a âč10 note given and it said that distribute âč3 each one in the room. There are 10 people in the room. How would I calculate that this much people got âč3. I tried with floor divison operator but here I needed how much people would get the money, given the number of rupees to be distributed that to using input function.
1 Answer
+ 1
#Take input of people.
people=int(input())
#Take input of money.
...
#Take input of each.
...
share= money // each
result= people -(people-share)
print(result)