-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalc.py
More file actions
45 lines (43 loc) · 2.11 KB
/
Copy pathcalc.py
File metadata and controls
45 lines (43 loc) · 2.11 KB
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
42
43
44
45
#!/usr/bin/python3
""" Copyright© 2023-2026 OpenSoftware-World
Python-Module Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
Python-Module All Rights Reserved under the GPL(General Public License).
Bu Yazılımın Bir Kopyası GitHub da yayınlanmaktadır Görüntülemek için: https://github.com/OpenSoftware-World/Python-Module
A Copy of This Software is published on GitHub To view: https://github.com/OpenSoftware-World/Python-Module """
from inputdtr import *
if command in ("calc", "Calc", "calculator", "Calculator"):
print("calc> Girebileceğiniz işlemler: ")
print("top\ncık\n\carp\nbol\nyuzde\nabout")
sayi1 , sayi2 , islem
if islem in ("toplama", "Toplama", "+"):
print(f"{sayi1} + {sayi2} = {top}")
elif islem in ("çıkarma", "Çıkarma", "-"):
print(f"{sayi1} + {sayi2} = {cık}")
elif islem in ("çarpma", "Çarpma", "*"):
print(f"{sayi1} + {sayi2} = {carp}")
elif islem in ("bölme", "Bölme", "/"):
if sayi2 == 0:
print("0'a bölünemez. Lütfen 0'dan farklı bir sayı giriniz.")
else:
print(f"{sayi1} + {sayi2} = {bol}")
elif islem in ("yüzde alma", "Yüzde alma", "%"):
print(f"{sayi1} + {sayi2} = {yuzde}")
else:
print("Geçersiz İşlem")
if command in ("about", "About", "info", "Info", "information", "Information"):
print(about)
elif command in ("exit", "Exit"):
exit()
elif command in ("help", "Help", "list", "List", "commands", "commands-list"):
print("Python calc Help")
print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence")
elif command in ("git-address", "OpenSoftware-World GitHub Address", "GitHub Link", "GitHub Page"):
print("Github Link: https://github.com/OpenSoftware-World")
elif command in ("web-site", "Web site", "Web Site"):
print("https://opensoftware-world.com")
elif command in ("ver", "Ver", "version", "Version"):
print("Sürüm: 0.1.7 (Son Güncellenme Tarihi 8 Eylül , 2023 , 18:08)")
elif command in ("licence", "Licence", "Licence info"):
print("This Software is protected under the GPL2 license")
else:
print("Geçersiz Komut")