0

what concept print(0b1010)

what is

10th May 2024, 4:34 PM
R Sivasangar
R Sivasangar - avatar
4 odpowiedzi
+ 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
10th May 2024, 5:04 PM
Ayush Singh
Ayush Singh - avatar
+ 4
R Sivasangar , what exactly is your issue, doubt or question? > please give a brief description.
10th May 2024, 4:38 PM
Lothar
Lothar - avatar
+ 1
What is the issue? Tell us. We can help you.
10th May 2024, 4:52 PM
Div Anand
Div Anand - avatar
+ 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`.
12th May 2024, 2:43 AM
JaiprakashJH
JaiprakashJH - avatar