1+ #!/usr/bin/python3
2+ "Copyright© 2023 LinuxUsersLinuxMint"
3+ "Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
4+ "Python Calcutator All Rights Reserved under the GPL(General Public License)."
5+ "Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
6+ "A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
7+
8+ command = input ('calc> ' )
9+ about = "Python Calcutator CLI(Command Line Interface) LICENCE=GPL2"
10+ if command == "calc" :
11+ print ("calc> Transactions You Can Enter: " )
12+ print ("collect\n Extraction\n \Impact\n Divide\n Percentage\n about" )
13+ number1 = input ('calc> Enter the 1st number: ' )
14+ number2 = input ('calc> Enter the 2nd number: ' )
15+ process = input ('calc> Enter the action you want to perform: ' )
16+ collect = float (number1 )+ float (number2 )
17+ Extraction = float (number1 )- float (number2 )
18+ Impact = float (number1 )* float (number2 )
19+ Divide = float (number1 )/ float (number2 )
20+ Percentage = float (number1 )% float (number2 )
21+ if process == "collect" :
22+ print ("{0} + {1} = {2}" . format (number1 ,number2 ,collect ))
23+ elif process == "Extraction" :
24+ print ("{0} - {1} = {2}" . format (number1 ,number2 ,Extraction ))
25+ elif process == "Impact" :
26+ print ("{0} * {1} = {2}" . format (number1 ,number2 ,Impact ))
27+ elif process == "Divide" :
28+ print ("{0} / {1} = {2}" . format (number1 ,number2 ,Divide ))
29+ elif process == "Percentage" :
30+ print ("{0} % {1} = {2}" . format (number1 ,number2 ,Percentage ))
31+ if command == "about" :
32+ print (about )
33+ elif command == "exit" :
34+ exit ()
35+ elif command == "help" :
36+ print ("Python calc Help" )
37+ print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
38+ elif command == "git-address" :
39+ print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
40+ elif command == "web-site" :
41+ print ("linuxuserslinuxmint.github.io" )
42+ elif command == "ver" :
43+ print ("Version: 0.1.5.5 (Last Updated September 6 , 2023 , 22:22)" )
44+ elif command == "licence" :
45+ print ("This Software is protected under the GPL2 license" )
0 commit comments