numeric operation | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
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