What's the output for the following? >>> -5 // 2 | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antworten
+ 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