How to find remainder in python?
![](https://pythonpoint.net/wp-content/uploads/2020/12/Pink-and-Blue-Abstract-Moms-Influencer-Freestyle-Art-YouTube-Channel-Art-4-1024x576.jpg)
We have many methods to find the remainder in python.
We’ll see some examples here.
e.g., using % symbol
a=25 b=3 print(a%b)
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-1112-1024x182.png)
e.g., using divmod()
q, r = divmod(26, 3) print("Remainder: ", r)
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-1114-1024x212.png)
This is all about finding remainder in python.
Subscribe
Login
Please login to comment
0 Discussion