Skip to content

How to get the remainder in Python?

a = 10
b = 3

c = a % b
print(c) # Prints 1
See also  Python code snippet - How to rename columns in pandas dataframe?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.