Quick actions

cmd+k|ctrl+k

Navigation

Languages

3.1

Snippet info

Language

Python

Visibility

public

Author

ninhvunguyen

Created

2016-09-21T08:24:40Z

Updated

2016-09-21T08:24:40Z

i = int(input("plz input a number:"))
print(i)
y = bin(i) #convert to  binary
print("binary:",y)
x = 0
for z in range(len(y)):
    if y[z] == '1':
        x = z
print("the rest of binary from last No.1:",y[x:])
          
INFO