Advertisement
Nenogzar

Untitled

Feb 12th, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. while True:
  2. input_string = input("Input String: ")
  3.  
  4. input_string = input_string.replace('*', '').replace('.', '')
  5. input_string = '_'.join(input_string.split())
  6. formatted_string = input_string.lower()
  7.  
  8. print(formatted_string)
  9.  
  10. repeat = input("Repeat? (Y/N)? ")
  11. if repeat.upper() == "N":
  12. print("Bye!")
  13. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement