Should we use double slash or single slash for division operation ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Should we use double slash or single slash for division operation ?

17th Feb 2018, 4:49 PM
Jyoti Dixit
Jyoti Dixit - avatar
1 Resposta
+ 5
In Python double slash(//) is used for obtaining integer quotient,where as single slash(/) is used for floating quotient. https://code.sololearn.com/cJ7lQpvDP54t/?ref=app
17th Feb 2018, 5:06 PM
šŸ“ˆSmileGoodHopešŸ“ˆ
šŸ“ˆSmileGoodHopešŸ“ˆ - avatar