numeric operation | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

numeric operation

tell me what is the meaning of '//' how to use it?

18th Jul 2016, 7:09 AM
Itsme Kashaf
Itsme Kashaf - avatar
1 Antwort
0
it is a floor division. for example: print(5//2) will give you two. example usage is to determine how many 2$ chocolates you can buy for 5$.
18th Jul 2016, 8:10 AM
RedAnt
RedAnt - avatar