Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverse_each_word():
- sentence = input("Enter any Sentence : ")
- words = sentence.split()
- new_sentence = ""
- for i in words:
- new_sentence += i[::-1] + " "
- print(f"Formatted Sentence : {new_sentence}")
- reverse_each_word()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement