Binary
JustineHoresh

Hello folks. I need a python program that is converting a number in binary like 2=10.
Thanks in advance for your help and sorry for my broken english

You are viewing a single comment. View All
olafh10

I created some code for you: https://repl.it/@olafh10/int-to-binary

This converts the input to binary, note that the program doesn't check if the input is a number. You can also just copy the intToBinary function for in your own program.

JustineHoresh

@olafh10 Thanks you very much

olafh10

@JustineHoresh No problem!