daily pastebin goal
20%
SHARE
TWEET

8q(Lista Férias)

DomMisterSoja Jul 19th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n1 = input("Insira um palavra ou frase")
  2. n1 = n1.lower()
  3. n2 = input("diga aqui por qual letras as vogais iram ser substituidas")
  4. n3 = 0
  5. mem = ''
  6. for i in n1:
  7.     if ('a') in i:
  8.         mem = mem+n2
  9.         n3 = n3+1
  10.     elif ('e') in i:
  11.         mem = mem+n2
  12.         n3 = n3+1
  13.     elif ('i') in i:
  14.         mem = mem+n2
  15.         n3 = n3+1
  16.     elif ('o') in i:
  17.         mem = mem+n2
  18.         n3 = n3+1
  19.     elif ('u') in i:
  20.         mem = mem+n2
  21.         n3 = n3+1
  22.     else:
  23.         mem = mem + i
  24. print (mem)  
  25. print('A palavra ou frase possuiam : ', n3 ,'vogais')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top