From 3e941447457902e4f5597060023b5792111d73a5 Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 18:12:16 +0100 Subject: [PATCH] Create 6 - Character Map --- 08/6 - Character Map | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 08/6 - Character Map diff --git a/08/6 - Character Map b/08/6 - Character Map new file mode 100644 index 0000000..befc08f --- /dev/null +++ b/08/6 - Character Map @@ -0,0 +1,9 @@ +res = "" +for i in range(2, 8): + chars = "chr: " + nums = "asc: " + for j in range(16): + chars += chr(16*i+j) + " " + nums += str(16*i+j) + " " * (4-len(str(16*i+j))) + res += chars + "\n" + nums + "\n" +print(res[:-1])