Welcome to the blog...
Links
Home
Tools
Contact
Search This Blog
June 07, 2019
Base 10 to Binary Python
def base10tobin(number_10):
b = ""
while number_10:
b += str(number_10 % 2)
number_10 //= 2
return b[::-1]
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment