+ 1

How can i improve this?

Please suggest any improvisations i can make here https://code.sololearn.com/c8q5PMvL32i6/?ref=app

4th Aug 2021, 1:43 PM
Harsha S
Harsha S - avatar
5 Respuestas
+ 2
Use dictionary
4th Aug 2021, 2:08 PM
Shadoff
Shadoff - avatar
4th Aug 2021, 2:31 PM
Shadoff
Shadoff - avatar
+ 1
Harsha S How about this solution? :- for x in input().lower(): print(chr (219-ord(x)) if x.isalpha() else x, end="") # Hope this helps
5th Aug 2021, 6:49 AM
Calvin Thomas
Calvin Thomas - avatar
0
Abhay I've actually created 4 lists and a string please look once more
4th Aug 2021, 2:00 PM
Harsha S
Harsha S - avatar
0
Shadoff I had used dictionary in my previous attempt. I found it lengthy and time consuming.
4th Aug 2021, 2:12 PM
Harsha S
Harsha S - avatar