|
@ -10,16 +10,15 @@ print(''' ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ |
|
|
|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/_______\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\| |
|
|
|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/_______\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\| |
|
|
''') |
|
|
''') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get 1 or 2, if neither then keep looping |
|
|
|
|
|
while True: |
|
|
print("""Would you like to convert from |
|
|
print("""Would you like to convert from |
|
|
1. Decimal to binary |
|
|
1. Decimal to binary |
|
|
2. Binary to decimal |
|
|
2. Binary to decimal |
|
|
""") |
|
|
""") |
|
|
|
|
|
|
|
|
# Get choice |
|
|
# Get choice |
|
|
choiceIn = int(input()) |
|
|
choiceIn = int(input()) |
|
|
|
|
|
|
|
|
# Get 1 or 2, if neither then keep looping |
|
|
|
|
|
while True: |
|
|
|
|
|
match choiceIn: |
|
|
match choiceIn: |
|
|
case 1: |
|
|
case 1: |
|
|
convertToBinary = True |
|
|
convertToBinary = True |
|
|