SHARE
TWEET

10q(Lista Férias)

DomMisterSoja Jul 19th, 2018 67 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. l1 = input('Insira qual letra deve ser substituida')
  4. l2 = input('Insira por qual letrar sera substituida')
  5. mem = ''
  6. for i in n1:
  7.     if (l1) in i:
  8.         mem = mem+l2
  9.     else:
  10.         mem = mem + i
  11. print (mem)
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top