sayi1 = int(input("Bir sayi girin: ")) sayi2 = int(input("Baska bir sayi girin: ")) islem = input("Islem seciniz (add, subtract, multiply): ") def ekleme(): sayi3 = sayi1 + sayi2 print str(sayi1) + " + " + str(sayi2) + " = " + str(sayi3) def cikarma(): user3 = sayi1 - sayi2 print str(sayi1) + " - " + str(sayi2) + " = " + str(sayi3) def carpma(): user3 = sayi1 * sayi2 print str(sayi1) + " * " + str(sayi2) + " = " + str(sayi3) if islem == "add": add() elif islem == "subtract": sub() elif islem == "multiply": times() else: print "Lutfen parantezde yazanlari yaziniz!"
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter