python remainder divide by 60 1

python remainder divide by 60

# find the remainder of variable divided by 60
r = num % 60

Here is what the above code is Doing:
1. num = num // 60
– num is divided by 60 and the result is stored in num
– the remainder is discarded
2. r = num % 60
– num is divided by 60 and the remainder is stored in r

Similar Posts