I haven't been learning python in awhile so I have forgot something's | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I haven't been learning python in awhile so I have forgot something's

what does % mean as in i % 2? I'm I one of the quizzes and i dont want to ne dpoiled the answer so try to explain but dont give away anything if you can understand...

11th Oct 2018, 5:46 PM
GD cheerios YT
GD cheerios YT - avatar
2 Answers
+ 2
% returns the remainder. 6%2=0 2,4,6 5%2=1 2,4 Leaving a remainder of 1
11th Oct 2018, 6:03 PM
LordHill
LordHill - avatar
0
oh
11th Oct 2018, 6:06 PM
GD cheerios YT
GD cheerios YT - avatar