0

i = '3471' z = i[::-1] if i == z: print(z) else: print(z[2]*2 + z[3]*2)

output?

19th Mar 2018, 8:34 AM
KUMARAN
KUMARAN - avatar
2 Respostas
+ 8
4433
19th Mar 2018, 8:36 AM
Louis
Louis - avatar
0
Understand that i and z are strings. and * operator simply repeats the given string a given number of times. Then try to understand the answer
19th Mar 2018, 10:29 AM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar