42445/how-to-calculate-modulus-in-python
calculate modules in python
mod = a % b
example
15 % 4
output:3 or
x=[3,1,2,4]
for a in x:
print (x % 2)
output: 1 1 0 0
i want to suggest you if you interested to learn know more about python modulus and python concept than you can join best python training in Delhi.
calculate square root in python >>> import math ...READ MORE
Try doing this - It is efficient for ...READ MORE
What accuracy score is considered a good ...READ MORE
Firstly we will import pandas to read ...READ MORE
Python doesn't have a native array data ...READ MORE
print(*names, sep = ', ') This is what ...READ MORE
can you show some operations using bitwise ...READ MORE
how do i use it in a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.