Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: Final of my French-Turkish dictionary
Submitted on October 7, 2018 at 08:38 PM

fr.py (Python)

def hoşGeldin():
    inp1 = input("Başlamak için 'Başla', çıkmak için 'Çık', tüm kelimeleri görmek için 'Hepsi' yaz.\n")
    if inp1 == "Başla":
        istekNe()
    elif inp1 == "Çık":
        print("Program sonlandırılıyor...")
        exit(0)
    elif inp1 == "Hepsi":
        alfadetikSıra()
        f = open("fr.txt", "r")
        print(f.read())
        hoşGeldin()
    else:
        hoşGeldin()
        
def depoCheck():
    inp5 = input("Aramak istediğiniz kelimeyi giriniz.\n")
    if inp5 in open('fr.txt').read():
        print("%s kelime deposunda." % inp5)
        hoşGeldin()
    else:
        inp6 = input("%s bulunamadı.\nEklemek için 'Ekle' yaz.\n" % inp5)
        if inp6 == "Ekle":
            yeniSözcük()
        else:
            hoşGeldin()

def istekNe():
    inp2 = input("Kelime aramak için 'Arat', Kelime eklemek için 'Yeni' yaz.\n")
    if inp2 == "Arat":
        depoCheck()
    elif inp2 == "Yeni":
        yeniSözcük()
    elif inp2 != "Yeni" or "Arat":
        istekNe()
        
def yeniSözcük():
    inp3 = input("Eklemek istediğiniz kelimenin Fransızcasını yaz.\n")
    inp7 = input("Eklemek istediğiniz kelimenin Türkçesini yaz.\n")
    yeniKelime = ("%s : %s" % (inp3, inp7))
    wordBankWrite(yeniKelime)
    alfadetikSıra()
    print("%s anlamına gelen %s kelimesi sözlüğe eklendi." % (inp7, inp3))
    hoşGeldin()

def wordBankWrite(inp4):
    wlw = open("fr.txt", "a")
    for i in range(1):
        wlw.write("%s\r\n" % inp4)

def alfadetikSıra():
    fr = list()
    with open("fr.txt") as fin:
        for line in fin:
            fr.append(line)
    fr.sort()
    with open("fr.txt", "w") as fout:
        for band in fr:
            fout.write(band)

print("Fransızca kelime deposuna hoşgeldin!\n")
hoşGeldin()

fr.txt (Text)

Apres : Sonra
Dimanche : Pazar
Lundi : Pazartesi
Pendant : İçin
Peu : Biraz
Quart : Çeyrek
Samedi : Cumartesi
Vendredi : Cuma