how to take a remainder and make different price python code example Example: how to get the remainder in python a = 10 b = 3 c = a % b print(c) # Prints 1