How can I print the modulo of a string in PYTHON? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I print the modulo of a string in PYTHON?

Please give the answer fast!!!!!!!

1st Sep 2017, 4:29 PM
Shantanu Kundu
Shantanu Kundu - avatar
1 Answer
+ 2
num = "25" print(int(num)% 5)
1st Sep 2017, 4:40 PM
ChaoticDawg
ChaoticDawg - avatar