0

Is there other way to solve this problem?

Extended version of Code Coach: Extra-Terrestrials https://code.sololearn.com/c8r4dhNYWZ0d/?ref=app

6th Mar 2022, 6:05 AM
Artur Cristiano
Artur Cristiano - avatar
1 Odpowiedź
+ 1
sentence = input() sen_rep = sentence.replace(',',' ') sen_spl = sen_rep.split() for word in sen_spl: print(word[::-1],end=" ") Using list comprehension [print(i[::-1],end=" ") for i in input().replace(',',' ').split()]
6th Mar 2022, 6:36 AM
Simba
Simba - avatar