Advertisement
TShiva

Untitled

Jun 25th, 2017
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. def reverse_words(str):
  2.     new_cocks=[]
  3.     for cock in str.split(" "):
  4.         new_cocks.append(cock[-1::-1])
  5.     string= " ".join(new_cocks)
  6.     print(string)
  7.     return string
  8. def main():
  9.     cock='This is  an  example!'
  10.     print(cock)
  11.     reverse_words(cock)
  12.  
  13. if __name__ == "__main__":
  14.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement