To express an integer as a binary number with Python literals you can use the below-mentioned ways:-
In Python you can express binary literals using the prefix 0b or 0B below is the example for the same:
>>> 0b101111
If you want to express integer into binary then you can use the new bin function to get the binary representation of a number:
>>> bin(173)