0
what concept print(0b1010)
what is
4 Answers
+ 5
R Sivasangar If you are asking about print(0b1010) then it converts the binary no. '1010' into it's decimal form '10'.
Any binary no. written after 0b is converted into it's decimal form.
Otherwise, explain your doubt
+ 4
R Sivasangar ,
what exactly is your issue, doubt or question?
> please give a brief description.
+ 1
What is the issue? Tell us. We can help you.
+ 1
`0b1010` is a binary number in Python notation. The `0b` prefix indicates that the number is in binary format. So, `0b1010` represents the binary number 1010, which is equivalent to the decimal number 10.
When you use `print(0b1010)`, it will output `10`, which is the decimal representation of the binary number `1010`.