Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Ralph Custodio
- # BSIT II-A
- # Create function even_reverse()
- def even_reverse(text_input):
- input_reverse = ' '.join(i[::-1] if not len(i) % 2 else i for i in text_input.split())
- return input_reverse
- # Call function even_reverse()
- print(even_reverse("The quick brown fox jumps over the lazy dog"))
- print(even_reverse("Python Exercises"))
Add Comment
Please, Sign In to add comment