This repository was archived by the owner on Oct 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalc.py
41 lines (40 loc) · 1.71 KB
/
calc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/python3
from inputdtr import *
"Copyright© 2023 LinuxUsersLinuxMint"
"Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
"Python Calcutator All Rights Reserved under the GPL(General Public License)."
"Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
"A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
if command=="calc":
print("calc> Girebileceğiniz işlemler: ")
print("top\ncık\n\carp\nbol\nyuzde\nabout")
sayi1 , sayi2 , islem
if islem=="top":
print("{0} + {1} = {2}". format(sayi1,sayi2,top))
elif islem=="cık":
print("{0} - {1} = {2}". format(sayi1,sayi2,cık))
elif islem=="carp":
print("{0} * {1} = {2}". format(sayi1,sayi2,carp))
elif islem=="bol":
print("{0} / {1} = {2}". format(sayi1,sayi2,bol))
elif islem=="yuzde":
print("{0} % {1} = {2}". format(sayi1,sayi2,yuzde))
else:
print("Geçersiz İşlem")
if command=="about":
print(about)
elif command=="exit":
exit()
elif command=="help":
print("Python calc Help")
print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence")
elif command=="git-address":
print("Github Link: https://github.com/LinuxUsersLinuxMint")
elif command=="web-site":
print("linuxuserslinuxmint.github.io")
elif command=="ver":
print("Sürüm: 0.1.7 (Son Güncellenme Tarihi 8 Eylül , 2023 , 18:08)")
elif command=="licence":
print("This Software is protected under the GPL2 license")
else:
print("Geçersiz Komut")