Binary to Decimal Convertor Decimal to Binary Convertor in PYTHON import math while True: decision = input("\n \nPress 1 for decimal to binary conversion\nPress 2 for binary to decimal conversion\n") if(decision=="1"): print("Instructions") print("1.) Only positive numbers") print("2.) Number should not be in fraction") print("3.) It should not contains alphabets or other special characters") n = input("Enter the number: ") n = int(n) mylist = [] if n John Veer Basic Python Projects Contact mail id - john.veer.utube@gmail.com Thanks for reading www.basicpythonprogramme.blogspot.com www.basicpythonprojects.blosgpot.com
Comments
Post a Comment