From 22ba745576eea60424bc68cccd08f29f98e44f04 Mon Sep 17 00:00:00 2001 From: bo Date: Mon, 8 May 2023 17:25:25 +0200 Subject: [PATCH] adding py file --- AdaBobbiCara/0705.py | 76 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 AdaBobbiCara/0705.py diff --git a/AdaBobbiCara/0705.py b/AdaBobbiCara/0705.py new file mode 100644 index 0000000..1e12c60 --- /dev/null +++ b/AdaBobbiCara/0705.py @@ -0,0 +1,76 @@ +# takes input and makes it a string +string = input() +lst = [] +d = { + 'a': 'a', + 'b': 'b', + 'c': 'ts', + 'd': 'd', + 'e': 'e', + 'f': 'f', + 'g': 'g', + 'h': 'h', + 'i': 'i', + 'k': 'k', + 'l': 'l', + 'm': 'm', + 'n': 'n', + 'o': 'o', + 'p': 'p', + 'q': 'ya', + 'r': 'r', + 's': 's', + 't': 't', + 'u': 'u', + 'v': 'dzh', + 'w': 'v', + 'y': 'y', + 'z': 'zh', + '`': 'ch', + ']': 'sht', + '[': 'sh', + '|': 'yu', +} + +e = { + 'a': '📇', + 'b': '🚝', + 'c': '🚱', + 'd': '🚯', + 'e': '🛂', + 'f': '🚞', + 'g': '🚠', + 'h': '🫃', + 'i': '🪸', + 'j': '🥟', + 'k': '🧔‍♀️', + 'l': '❤️‍🔥', + 'm': '🉑', + 'n': '🤡', + 'o': '🔫', + 'p': '⚰️', + 'q': '🔣', + 'r': '🤖', + 's': '🦞', + 't': '🛴', + 'u': '🍶', + 'v': '🪕', + 'w': '📟', + 'x': '🪅', + 'y': '📫', + 'z': '🥌', + '`': '🏵️', + ']': '༎ຶ‿༎ຶ )', + '[': 'ଘ( ິ•ᆺ⃘• )ິଓ', + '|': '╭∩╮(ಠ۝ಠ)╭∩╮', +} +# s = letter +# separates the string into letters +for letter in string: + lst.append(letter) + # prints the list + # print(lst) + + # prints the header of table + print('U BIN HX DC CY EM') + print(letter, format(ord(letter), '08b'), format(ord(letter), '02x'), ord(letter), d[letter], e[letter]) \ No newline at end of file