cmd+k|ctrl+k
cmd+k
ctrl+k
Navigation
Browse public code snippets.
Contact us about glot.io.
Read the privacy policy.
Manage snippets in your account.
Open your account settings.
Languages
Create a new Python snippet.
Create a new TypeScript snippet.
Create a new C snippet.
Create a new Rust snippet.
Create a new Java snippet.
Python
public
theanhvo221
2016-09-20T13:53:39Z
2016-09-20T13:53:51Z
# bai 3.1 input_num = 8 bin_in = str(bin(input_num)) index1 = bin_in.rfind('1') print(bin_in) print(bin_in[index1:])