+ 4
"/" is for normal division and returns a float. "//" is for floor division. It only gives you the whole number as an integer. It drops the decimals. "%" is the modulo operator it returns the remainder. Example: 9 / 6 = 1.5 9 // 6 = 1 9 % 6 = 3 And for the future https://code.sololearn.com/W3uiji9X28C1/?ref=app
13th Sep 2021, 4:03 PM
Simon Sauter
Simon Sauter - avatar