What's the output for the following? >>> -5 // 2 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 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 Respostas
+ 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