diff --git a/solutions/python/474A.py b/solutions/python/474A.py new file mode 100644 index 0000000..91e09d1 --- /dev/null +++ b/solutions/python/474A.py @@ -0,0 +1,23 @@ +shift = input() +s = input() + +rows = [ + "qwertyuiop", + "asdfghjkl;", + "zxcvbnm,./", +] + +construct = "" + +for i in range(len(s)): + for j in rows: + row = list(j) + if s[i] in row: + if shift == "R": + change = -1 + else: + change = +1 + + construct += row[row.index(s[i])+change] + +print(construct)