Skip to content Skip to sidebar Skip to footer

How Would I Turn A Number Into Its Binary Representation?

How would I turn a number into denary from binary and whats wrong with the code: print (' Enter a number') realnum = int(input()) print('In Binary that is', bin(realnum)[2:]) in

Solution 1:

print("In Binary that is", bin(realnum)[2:])
print("In Denary that is", realnum)

is all you want I think ... based on how I interpreted your question


Post a Comment for "How Would I Turn A Number Into Its Binary Representation?"