8
print "1. Decimal to Binary Conversion. \n"
9
print "2. Binary to Decimal Conversion. \n"
12
choice=raw_input("Enter No. of Your Choice: ")
14
#Do Decimal to Binary Conversion
16
print "1. Decimal to Binary Conversion. \n"
17
num=raw_input("Enter the decimal number: ")
20
print "The binary form of the number is: %s " % binary[2:]
23
# Do Binary to Decimal Conversion.
25
print "2. Binary to Decimal Conversion \n"
26
binput=raw_input ("Enter the binary number: ")
27
dec=int(str(binput),2)
28
print "The Decimal form of the number is: %s \n " % (dec)
31
# Display the About page.
33
print " Add about information here. \n"
41
# If no option matches, retry
43
print " Select the options 1 to 4 \n"
47
ans=raw_input("Do you want to exit (y/n): ? ")
54
print " Enter y or n \n "