Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- input_string = input("Input String: ")
- input_string = input_string.replace('*', '').replace('.', '')
- input_string = '_'.join(input_string.split())
- formatted_string = input_string.lower()
- print(formatted_string)
- repeat = input("Repeat? (Y/N)? ")
- if repeat.upper() == "N":
- print("Bye!")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement