How to convert decimal to binary in python?
In python there is much easier way to convert decimal number
to binary using bin(arg) function. Function bin(arg) is the inbuilt function
that save us from make a complex code. Bin(number) function takes a decimal
number as a argument and return binary number. The image given below is a
example that how to use bin() function
to convert decimal to binary.
No comments:
Post a Comment