|
2 | 2 | import os |
3 | 3 | from colorama import Fore, init |
4 | 4 | init(autoreset=True) |
| 5 | +process=int(0) |
5 | 6 | # Copyright© 2023 LinuxUsersLinuxMint |
6 | 7 | # Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır. |
7 | 8 | # Python Calcutator All Rights Reserved under the GPL(General Public License). |
8 | 9 | # 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 | 10 | # A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint |
10 | 11 | print("******************************************************") |
11 | | -print("*** Python-Calcutator 0.2.7 Programına Hoşgeldiniz ***") |
12 | | -print("""*** Seçenekler: *** |
| 12 | +print("*** Welcome to Python-Calcutator 0.2.7 Program ***") |
| 13 | +print("""*** Options: *** |
13 | 14 | *** *** |
14 | | -*** Seçmek istediğiniz Komutu Giriniz... *** |
| 15 | +*** Enter the Command you want to choose... *** |
15 | 16 | *** *** |
16 | 17 | *** 1. calc *** |
17 | 18 | *** 2. about *** |
|
24 | 25 | ******************************************************""") |
25 | 26 | command=str(input(Fore.LIGHTBLUE_EX +'calc> ')) |
26 | 27 | os.system("clear") |
27 | | -about="Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2" |
28 | | -secilen_islem=str(Fore.LIGHTBLUE_EX+"None") |
| 28 | +about="Python Calcutator CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2" |
| 29 | +selected_transaction=str(Fore.LIGHTBLUE_EX+"None") |
29 | 30 | if command=="calc": |
30 | | - print("""*** Girebileceğiniz işlemler: *** |
31 | | - Seçilen İşlem={0}""". format(secilen_islem)) |
| 31 | + print("""*** Transactions you can enter: *** |
| 32 | + Selected Transaction={0}""". format(selected_transaction)) |
32 | 33 | print(""" |
33 | 34 | 1. Addition |
34 | 35 | 2. Subraction |
35 | 36 | 3. Multiplication |
36 | 37 | 4. Division |
37 | 38 | 5. Percentage""") |
38 | | - process=str(input('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: ')) |
39 | | - secilen_islem=process |
| 39 | + process=str(input('calc> Enter the Number of the Transaction You Want to Select: ')) |
| 40 | + selected_transaction=process |
40 | 41 | os.system("clear") |
41 | | - print(Fore.LIGHTBLUE_EX+"""calc> Seçilen İşlem: |
42 | | - Seçilen İşlem={0}""". format(secilen_islem)) |
| 42 | + print(Fore.LIGHTBLUE_EX+"""calc> Selected Transaction: |
| 43 | + Selected Transaction={0}""". format(selected_transaction)) |
43 | 44 | number1=float(input('calc> Enter The 1st Number: ')) |
44 | 45 | number2=float(input('calc> Enter The 2st Number: ')) |
45 | 46 | os.system("clear") |
|
54 | 55 | elif process=="5": |
55 | 56 | print("{0} % {1} = {2}". format(number1,number2,number1%number2)) |
56 | 57 | else: |
57 | | - print("Geçersiz İşlem!") |
| 58 | + print("Invalid Process!") |
58 | 59 | if command=="about": |
59 | 60 | print(about) |
60 | 61 | elif command=="exit": |
|
67 | 68 | elif command=="web-site": |
68 | 69 | print("linuxuserslinuxmint.github.io") |
69 | 70 | elif command=="ver": |
70 | | - print("Sürüm: 0.2.7 (Son Güncellenme Tarihi 6 Ekim , 2023 , 18:03)") |
| 71 | + print("Version: 0.2.7 (Last Updated on October 6, 2023, 18:03)") |
71 | 72 | elif command=="licence": |
72 | 73 | print("This Software is protected under the GPL2 license") |
73 | 74 | elif command=="Thank": |
|
0 commit comments