Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def inlocuiesteDiacriticile(linie):
- q='ăîșțâĂÎȘȚÂ'
- w='aistaAISTA'
- linie=list(linie)
- nume=''
- for i in range(len(linie)):
- if linie[i] in q:
- nume+=w[q.index(linie[i])]
- else:
- nume+=linie[i]
- return (nume)
- a='ăgfîhgșțâahkggfghgdsfĂÎȘȚÂ'
- b=inlocuiesteDiacriticile(a)
- print (b)
Add Comment
Please, Sign In to add comment