bylge-logo

    Bylge

    Python İle Hesap Makinesi Yapımı

    Picture of the Python

    Python

    December 09, 2023

    Python Hesap Makinesi Yapımı İlk Olarak Ana Fonksiyonu Yazalım def main(x): pass Sonra Toplama Fonksiyonunu Yazalım def main(x): def t(x,y):return x+

    Python Hesap Makinesi Yapımı


    İlk Olarak Ana Fonksiyonu Yazalım

    def main(x):

    pass


    Sonra Toplama Fonksiyonunu Yazalım

    def main(x):

    def t(x,y):return x+y


    Evet Bu Fonksiyonu 6 Kere Daha Yapalım

    def main(x):

    def t(x,y):return x+y

    def c(x,y):return x-y

    def a(x,y):return x*y

    def b(x,y):return x/y

    def u(x,y):return x**y

    def k(x,y):return y**(x/(x**2))


    Python_İle_Hesap_Makinesi_Yapımı


    Şimdi İşlemler Tamam Şimdi Seçtirme İşlemini Yapalım

    x=x.upper()

    if x=="TOPLAMA":return t(int(input("X : ")),int(input("X : ")))


    Program Bitti Geri Kalanını Kopyala Yapıştır Yani


    if x=="TOPLAMA":return t(int(input("X : ")),int(input("X : ")))

    if x=="CIKARMA":return c(int(input("X : ")),int(input("X : ")))

    if x=="CARPMA":return a(int(input("X : ")),int(input("X : ")))

    if x=="BOLME":return b(int(input("X : ")),int(input("X : ")))

    if x=="Üss":return u(int(input("X : ")),int(input("X : ")))

    if x=="Kök":return k(int(input("X : ")),int(input("X : ")))


    Son Olarak

    print(main(str(input("Islem Adi"))))



    Python_İle_Hesap_Makinesi_Yapımı


    Bağış Atan Herkese Teşekkürler
    Share Your Expertise, Earn Rewards!

    Found this insightful? Imagine your knowledge generating income. Contribute your articles to bylge.com and connect with readers while unlocking your earning potential.

    Comments

    There are no records on the list.

    There are no records on the list.