0

Why syntax error in line 2?

input = list((input().lower()) abc = 'abcdefghijklmnopqrstuvwxyz' zyx = 'zyxwvutsrqponmlkjihgfedcba' for i in input: if i in abc: input[input.index(i)] = zyx[abc.index(i)] print(''.join(input))

9th May 2020, 3:57 AM
kxrxkt
kxrxkt - avatar
2 Answers
+ 6
You have an extra '(' before input()
9th May 2020, 3:59 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Thanks
9th May 2020, 4:00 AM
kxrxkt
kxrxkt - avatar