What's the output for the following? >>> -5 // 2 | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

What's the output for the following? >>> -5 // 2

Python Quotient Operation

28th Apr 2019, 7:16 PM
Ganashiam Nadarasa
Ganashiam Nadarasa - avatar
2 Réponses
+ 4
You may Try it in the code playground
28th Apr 2019, 7:29 PM
Jason Mackjoo
Jason Mackjoo - avatar
+ 4
// is quite different in Python (floor division) compared to C-based languages (single line comment)
28th Apr 2019, 10:48 PM
Sonic
Sonic - avatar