Reverse each word of a string python

preview_player
Показать описание
#shorts #reverse #string #python3 #python #codeeditor #vim #vscode #bestpractice #programmer #howtocode #tricks #easy #tutorial #library #cool #tips #coding #programming #best #script #amaizingpython

Given a string, we are going to reverse each word of it.

Song: Jarico - Island (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Рекомендации по теме
Комментарии
Автор

a="my name is arun"
reverse=" ".join([i[::-1] for i in a.split(" ")])
print (reverse)

Output:- 'ym eman si nura'

akshaygondaliya
Автор

Reversed is allready a built-in function who do the same as [::-1] but for all iterables

momoladebrouill
join shbcf.ru