+ 12

[ASSIGNMENT] 🚩🚩 Convert To Binary

Task:👋👋 Take a number as an input. Convert it to binary. You can use built-in method to perform this task. You can use any language. Good luck😉😉 https://code.sololearn.com/cB6zZ5emKJX0/?ref=app

2nd Mar 2018, 2:37 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
14 Answers
+ 5
Can easily convert floats as well. https://code.sololearn.com/coLY4m0wPfvW/?ref=app
2nd Mar 2018, 5:27 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 21
https://code.sololearn.com/chxRsKef9Z0Z/?ref=app
4th Mar 2018, 5:23 PM
MeanMachine
MeanMachine - avatar
12th May 2018, 10:40 AM
JULIUS FREDRICK
JULIUS FREDRICK - avatar
+ 4
num = int(input("enter a number: ")) print(bin(num)) --python
2nd Mar 2018, 3:07 AM
emmey
emmey - avatar
+ 4
Python (I think this is my first oneliner) print(bin(int(input())))
2nd Mar 2018, 4:19 AM
voja
voja - avatar
+ 1
https://code.sololearn.com/c5bz42khAgc6/?ref=app This code was by James. It is just something I had saved to study.
2nd Mar 2018, 3:46 AM
emmey
emmey - avatar
4th Mar 2018, 6:03 PM
Ishan Rathi
Ishan Rathi - avatar
3rd Apr 2018, 1:49 PM
Thameem Jabir KJ
Thameem Jabir KJ - avatar
- 2
2nd Mar 2018, 4:35 AM
Alex
Alex - avatar