m = input()
bin_m = bin(M)[2:][::-1]
print(bin_m)
I was going through a code which requires me to convert decimal number to binary and they used:
bin_m = bin(M)[2:][::-1]
this to convert m to binary.
Somebody, please help me with this
what does [2:][::-1]
mean