Advertisement
Alx09

Ex1 bun

Apr 1st, 2022
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. def elimnareVocale(text):
  2.     vowels = ('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I','O','U');
  3.     for x in vowels:
  4.         text = text.replace(x,"");
  5.     print(text);
  6. text = "";
  7. my_dict = {}
  8. while(len(text) != 1 and text.isdigit() == False):
  9.     text = input("Enter any string: ");
  10.     my_dict.update({text: len(text)})
  11.     elimnareVocale(text);
  12.    
  13. print(my_dict);
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement