solutions: 474A

This commit is contained in:
Muhammad Nauman Raza 2025-02-07 22:36:30 +00:00
parent 9bf9ac97b0
commit 08efdec05f
Signed by: devraza
GPG key ID: 91EAD6081011574B

23
solutions/python/474A.py Normal file
View file

@ -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)