Guest User

Untitled

a guest
Jun 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. def inlocuiesteDiacriticile(linie):    
  2.     q='ăîșțâĂÎȘȚÂ'
  3.     w='aistaAISTA'
  4.     linie=list(linie)
  5.     nume=''
  6.     for i in range(len(linie)):
  7.         if linie[i] in q:
  8.             nume+=w[q.index(linie[i])]
  9.         else:
  10.             nume+=linie[i]    
  11.     return (nume)
  12. a='ăgfîhgșțâahkggfghgdsfĂÎȘȚÂ'
  13. b=inlocuiesteDiacriticile(a)
  14. print (b)
Add Comment
Please, Sign In to add comment