# 108 - bet
# Nazorat ishi
# 4 - masala
# protsedura prototipini yozamiz:
def almashtir(suz):
# yangi so'zni terish uchun hozircha bo'sh:
s = ''
# barcha harflarni kichik harga o'tqizish:
suz = suz.lower()
# har bir harfni tekshirish uchun sikl:
for i in range(len(suz)):
# kerakli harflar uchun shartlar:
if suz[i] == 'k':
s += 'q'
elif suz[i] == 't':
s += 'd'
elif suz[i] == 'n':
s += 'm'
else:
s += suz[i]
# natijani chop e'tish:
print(s)
# so'z kiritamiz:
s = input("so'z => ")
# uni funksiyaga argument qilib beramiz:
almashtir(s)
# Nazorat ishi
# 4 - masala
# protsedura prototipini yozamiz:
def almashtir(suz):
# yangi so'zni terish uchun hozircha bo'sh:
s = ''
# barcha harflarni kichik harga o'tqizish:
suz = suz.lower()
# har bir harfni tekshirish uchun sikl:
for i in range(len(suz)):
# kerakli harflar uchun shartlar:
if suz[i] == 'k':
s += 'q'
elif suz[i] == 't':
s += 'd'
elif suz[i] == 'n':
s += 'm'
else:
s += suz[i]
# natijani chop e'tish:
print(s)
# so'z kiritamiz:
s = input("so'z => ")
# uni funksiyaga argument qilib beramiz:
almashtir(s)