Skip to content

Commit b7316f4

Browse files
Initial commit
1 parent 3139547 commit b7316f4

File tree

1 file changed

+54
-55
lines changed

1 file changed

+54
-55
lines changed

TR/calc.py

Lines changed: 54 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,77 +2,76 @@
22
import os
33
from colorama import Fore, init
44
init(autoreset=True)
5-
"Copyright© 2023 LinuxUsersLinuxMint"
6-
"Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
7-
"Python Calcutator All Rights Reserved under the GPL(General Public License)."
8-
"Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
9-
"A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
5+
# Copyright© 2023 LinuxUsersLinuxMint
6+
# Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
7+
# Python Calcutator All Rights Reserved under the GPL(General Public License).
8+
# Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
9+
# A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
1010
print("******************************************************")
11-
print("*** Python-Calcutator 0.2.5 Programına Hoşgeldiniz ***")
11+
print("*** Python-Calcutator 0.2.7 Programına Hoşgeldiniz ***")
1212
print("""*** Seçenekler: ***
13-
13+
*** ***
1414
*** Seçmek istediğiniz Komutu Giriniz... ***
15-
16-
1. calc
17-
2. about
18-
3. exit
19-
4. help
20-
5. git-address
21-
6. ver
22-
7. licence""")
15+
*** ***
16+
*** 1. calc ***
17+
*** 2. about ***
18+
*** 3. exit ***
19+
*** 4. help ***
20+
*** 5. git-address ***
21+
*** 6. ver ***
22+
*** 7. licence ***
23+
*** 8. Thank ***
24+
******************************************************""")
2325
command=str(input(Fore.LIGHTBLUE_EX +'calc> '))
2426
os.system("clear")
2527
about="Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
2628
secilen_islem=str(Fore.LIGHTBLUE_EX+"None")
2729
if command=="calc":
28-
print("""calc> Girebileceğiniz işlemler:
30+
print("""*** Girebileceğiniz işlemler: ***
2931
Seçilen İşlem={0}""". format(secilen_islem))
3032
print("""
3133
1. Toplama
3234
2. Çıkarma
3335
3. Çarpma
3436
4. Bölme
3537
5. Yüzde""")
36-
islem=input('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: ')
37-
os.system("clear")
38-
38+
islem=str(input('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: '))
3939
secilen_islem=islem
40-
print("""calc> Seçilen İşlem:
40+
os.system("clear")
41+
print(Fore.LIGHTBLUE_EX+"""calc> Seçilen İşlem:
4142
Seçilen İşlem={0}""". format(secilen_islem))
42-
sayi1=input('calc> 1. sayiyi giriniz: ')
43-
sayi2=input('calc> 2. sayiyi giriniz: ')
43+
sayi1=float(input('calc> 1. sayiyi giriniz: '))
44+
sayi2=float(input('calc> 2. sayiyi giriniz: '))
4445
os.system("clear")
45-
top=float(sayi1)+float(sayi2)
46-
cık=float(sayi1)-float(sayi2)
47-
carp=float(sayi1)*float(sayi2)
48-
bol=float(sayi1)/float(sayi2)
49-
yuzde=float(sayi1)%float(sayi2)
50-
if islem=="1":
51-
print("{0} + {1} = {2}". format(sayi1,sayi2,top))
52-
elif islem=="2":
53-
print("{0} - {1} = {2}". format(sayi1,sayi2,cık))
54-
elif islem=="3":
55-
print("{0} * {1} = {2}". format(sayi1,sayi2,carp))
56-
elif islem=="4":
57-
print("{0} / {1} = {2}". format(sayi1,sayi2,bol))
58-
elif islem=="5":
59-
print("{0} % {1} = {2}". format(sayi1,sayi2,yuzde))
60-
else:
61-
print("Geçersiz İşlem")
62-
if command=="about":
63-
print(about)
64-
elif command=="exit":
65-
exit()
66-
elif command=="help":
67-
print("Python calc Help")
68-
print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence")
69-
elif command=="git-address":
70-
print("Github Link: https://github.com/LinuxUsersLinuxMint")
71-
elif command=="web-site":
72-
print("linuxuserslinuxmint.github.io")
73-
elif command=="ver":
74-
print("Sürüm: 0.2.5 (Son Güncellenme Tarihi 1 Ekim , 2023 , 16:46)")
75-
elif command=="licence":
76-
print("This Software is protected under the GPL2 license")
46+
if islem=="1":
47+
print("{0} + {1} = {2}". format(sayi1,sayi2,sayi1+sayi2))
48+
elif islem=="2":
49+
print("{0} - {1} = {2}". format(sayi1,sayi2,sayi1-sayi2))
50+
elif islem=="3":
51+
print("{0} * {1} = {2}". format(sayi1,sayi2,sayi1*sayi2))
52+
elif islem=="4":
53+
print("{0} / {1} = {2}". format(sayi1,sayi2,sayi1/sayi2))
54+
elif islem=="5":
55+
print("{0} % {1} = {2}". format(sayi1,sayi2,sayi1%sayi2))
7756
else:
78-
print("Geçersiz Komut")
57+
print("Geçersiz İşlem!")
58+
if command=="about":
59+
print(about)
60+
elif command=="exit":
61+
exit()
62+
elif command=="help":
63+
print("Python calc Help")
64+
print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence , Thank")
65+
elif command=="git-address":
66+
print("Github Link: https://github.com/LinuxUsersLinuxMint")
67+
elif command=="web-site":
68+
print("linuxuserslinuxmint.github.io")
69+
elif command=="ver":
70+
print("Sürüm: 0.2.7 (Son Güncellenme Tarihi 6 Ekim , 2023 , 18:03)")
71+
elif command=="licence":
72+
print("This Software is protected under the GPL2 license")
73+
elif command=="Thank":
74+
print("Python-Calcutator'u Kullandığınız için Teşekkür ederim. ")
75+
# Thank You for Using Python-Calcutator.
76+
else:
77+
print("Geçersiz Komut!")

0 commit comments

Comments
 (0)