Does 0b represents binary, in this code? | Sololearn: Learn to code for FREE!
+ 1

Does 0b represents binary, in this code?

x = 0b0010 print (x) #answer is 2

9th Jun 2020, 11:13 PM
Azad m. A.
Azad m. A. - avatar
1 Odpowiedź
+ 5
Yes.
9th Jun 2020, 11:54 PM
Avinesh
Avinesh - avatar