Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverse_words(str):
- new_cocks=[]
- for cock in str.split(" "):
- new_cocks.append(cock[-1::-1])
- string= " ".join(new_cocks)
- print(string)
- return string
- def main():
- cock='This is an example!'
- print(cock)
- reverse_words(cock)
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement