From 2ec2043cfab0c7135d3c18ccc27e478178848408 Mon Sep 17 00:00:00 2001
From: Valentin Gehrke <madmaurice@zom.bi>
Date: Sun, 21 Feb 2016 15:37:03 +0100
Subject: [PATCH] Updated zahlensysteme.py to python3

---
 zahlensysteme.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/zahlensysteme.py b/zahlensysteme.py
index 8bd858f..121d288 100644
--- a/zahlensysteme.py
+++ b/zahlensysteme.py
@@ -5,7 +5,7 @@ class NumericSystemException(Exception):
 	pass
 
 class Zahlensystem:
-	chars = map(str, range(0,10)) + map(chr, range(ord('A'), ord('F')+1))
+	chars = list(map(str, range(0,10))) + list(map(chr, range(ord('A'), ord('F')+1)))
 	def __init__(self, basis):
 		self.basis = int(basis)
 		if self.basis > 16 or self.basis < 2:
@@ -77,8 +77,8 @@ class Zahlensystem:
 		return v
 
 if __name__ == '__main__':
-	num = raw_input("Num> ")
-	fr = int(raw_input("From> "))
-	to = int(raw_input("To> "))
+	num = input("Num> ")
+	fr = int(input("From> "))
+	to = int(input("To> "))
 
-	print Zahlensystem(to).toNum(Zahlensystem(fr).fromNum(num))
+	print(Zahlensystem(to).toNum(Zahlensystem(fr).fromNum(num)))