Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # recursive_str_elim.py
- def elimination(text):
- if text != '':
- print("Current Text: "+str(text))
- text = text[:-1].strip()
- elimination(text)
- else:
- print(text)
- elimination("Hello Python World!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement