Format
There really is no hope of making this code even half-way decent without spending the time to rewrite them all properly. Don't want to do any of that
This commit is contained in:
@@ -5,17 +5,14 @@ system = int(input("Zahlensystem: "))
|
||||
if system == 2:
|
||||
y = bin(eingabe)
|
||||
print("Resultat:", y)
|
||||
|
||||
|
||||
elif system == 16:
|
||||
y = hex(eingabe)
|
||||
print("Resultat:", y)
|
||||
|
||||
|
||||
elif system == 8:
|
||||
y = oct(eingabe)
|
||||
print("Resultat:", y)
|
||||
|
||||
|
||||
else:
|
||||
print("wrong")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user