Advertisement
Arcot

ch6 pg10

Nov 12th, 2022
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. text = input("Enter a sentence")
  2.  
  3. list = text.split()
  4.  
  5. list.reverse()
  6.  
  7. text = " ".join(list)
  8.  
  9. print(text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement