Skip to content

Commit 3139547

Browse files
Initial commit
1 parent 4ed0aee commit 3139547

File tree

2 files changed

+39
-11
lines changed

2 files changed

+39
-11
lines changed

INSTALL/TR/calc

100644100755
-5.3 MB
Binary file not shown.

TR/calc.py

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,61 @@
11
#!/usr/bin/python3
2+
import os
3+
from colorama import Fore, init
4+
init(autoreset=True)
25
"Copyright© 2023 LinuxUsersLinuxMint"
36
"Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
47
"Python Calcutator All Rights Reserved under the GPL(General Public License)."
58
"Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
69
"A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
10+
print("******************************************************")
11+
print("*** Python-Calcutator 0.2.5 Programına Hoşgeldiniz ***")
12+
print("""*** Seçenekler: ***
713
8-
command=str(input('calc> '))
9-
about="Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
14+
*** Seçmek istediğiniz Komutu Giriniz... ***
1015
16+
1. calc
17+
2. about
18+
3. exit
19+
4. help
20+
5. git-address
21+
6. ver
22+
7. licence""")
23+
command=str(input(Fore.LIGHTBLUE_EX +'calc> '))
24+
os.system("clear")
25+
about="Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
26+
secilen_islem=str(Fore.LIGHTBLUE_EX+"None")
1127
if command=="calc":
12-
print("calc> Girebileceğiniz işlemler: ")
13-
print("top\ncık\n\carp\nbol\nyuzde\nabout")
28+
print("""calc> Girebileceğiniz işlemler:
29+
Seçilen İşlem={0}""". format(secilen_islem))
30+
print("""
31+
1. Toplama
32+
2. Çıkarma
33+
3. Çarpma
34+
4. Bölme
35+
5. Yüzde""")
36+
islem=input('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: ')
37+
os.system("clear")
38+
39+
secilen_islem=islem
40+
print("""calc> Seçilen İşlem:
41+
Seçilen İşlem={0}""". format(secilen_islem))
1442
sayi1=input('calc> 1. sayiyi giriniz: ')
1543
sayi2=input('calc> 2. sayiyi giriniz: ')
16-
islem=input('calc> Gerçekleştirmek İstediğiniz İşlemi Giriniz: ')
44+
os.system("clear")
1745
top=float(sayi1)+float(sayi2)
1846
cık=float(sayi1)-float(sayi2)
1947
carp=float(sayi1)*float(sayi2)
2048
bol=float(sayi1)/float(sayi2)
2149
yuzde=float(sayi1)%float(sayi2)
22-
if islem=="top":
50+
if islem=="1":
2351
print("{0} + {1} = {2}". format(sayi1,sayi2,top))
24-
elif islem=="cık":
52+
elif islem=="2":
2553
print("{0} - {1} = {2}". format(sayi1,sayi2,cık))
26-
elif islem=="carp":
54+
elif islem=="3":
2755
print("{0} * {1} = {2}". format(sayi1,sayi2,carp))
28-
elif islem=="bol":
56+
elif islem=="4":
2957
print("{0} / {1} = {2}". format(sayi1,sayi2,bol))
30-
elif islem=="yuzde":
58+
elif islem=="5":
3159
print("{0} % {1} = {2}". format(sayi1,sayi2,yuzde))
3260
else:
3361
print("Geçersiz İşlem")
@@ -43,7 +71,7 @@
4371
elif command=="web-site":
4472
print("linuxuserslinuxmint.github.io")
4573
elif command=="ver":
46-
print("Sürüm: 0.2 (Son Güncellenme Tarihi 17 Eylül , 2023 , 14:43)")
74+
print("Sürüm: 0.2.5 (Son Güncellenme Tarihi 1 Ekim , 2023 , 16:46)")
4775
elif command=="licence":
4876
print("This Software is protected under the GPL2 license")
4977
else:

0 commit comments

Comments
 (0)