Should we use double slash or single slash for division operation ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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

17th Feb 2018, 4:49 PM
Jyoti Dixit
Jyoti Dixit - avatar
2 Answers
+ 4
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
- 1
one slash only two slashes is considered a comment in most languages
17th Feb 2018, 5:02 PM
Dominique Abou Samah
Dominique Abou Samah - avatar