Should we use double slash or single slash for division operation ? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

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

17th Feb 2018, 4:49 PM
Jyoti Dixit
Jyoti Dixit - avatar
1 Respuesta
+ 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