0

I am newbie just help me out please

How to do this ? What does % means in python coding? print(15 % 5)

7th Aug 2021, 2:52 PM
Nadira Anzum Deena
Nadira Anzum Deena - avatar
4 Réponses
+ 9
it's a modulus operator. it outputs the remainder of division. 15 / 5 = 3 15 % 5 = 0
7th Aug 2021, 2:57 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 7
Check Lesson 6.1
7th Aug 2021, 3:08 PM
David Ashton
David Ashton - avatar
+ 2
This can help you: 4%2=0 4/2=2
8th Aug 2021, 6:46 PM
Fateme Foroughi
Fateme Foroughi - avatar
0
That is the modulus operator, you can use that to output the reminder of division For example: 10 % 4 = 2 instead of 2.5
8th Aug 2021, 4:51 PM
Hamidu Diallo