Solve problem "Apple sharing" online - Learn Python 3 - Snakify

Apple sharing


N students take K apples and distribute them among each other evenly. The remaining (the undivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket?

The program reads the numbers N and K. It should print the two answers for the questions above.

Advertising by Google, may be based on your interests

In all the problems input the data using input() and print the result using print().