Skip to content

Instantly share code, notes, and snippets.

@kkoyun
Created September 7, 2017 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkoyun/e2bc559331ac9f57b9ce1a564f1b1da0 to your computer and use it in GitHub Desktop.
Save kkoyun/e2bc559331ac9f57b9ce1a564f1b1da0 to your computer and use it in GitHub Desktop.
Character replacement program
kelimeNumara = {'A': '11', 'a': '11', 'E': '22', 'e': '22'}
kelime = input('Kelime giriniz: ')
kelime = list(kelime)
for i in range(len(kelime)):
    if not kelimeNumara.get(kelime[i], False):
        continue
    else:
        kelime[i] = kelimeNumara[kelime[i]]
for harf in kelime:
    print(harf,end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment