Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- message = input("Enter a message: ")
- new_message = ""
- VOWELS = "aeiou"
- print()
- for letter in message:
- if letter.lower() not in VOWELS:
- new_message += letter
- print("A new string has been created:", new_message)
- print("\nYour message without vowels is:", new_message)
- input("\n\nPress the enter key to exit.")
Advertisement
Add Comment
Please, Sign In to add comment