2020 Percentage = float (number1 )% float (number2 )
2121 if process == "collect" :
2222 print ("{0} + {1} = {2}" . format (number1 ,number2 ,collect ))
23- if process == "Extraction" :
23+ elif process == "Extraction" :
2424 print ("{0} - {1} = {2}" . format (number1 ,number2 ,Extraction ))
25- if process == "Impact" :
25+ elif process == "Impact" :
2626 print ("{0} * {1} = {2}" . format (number1 ,number2 ,Impact ))
27- if process == "Divide" :
27+ elif process == "Divide" :
2828 print ("{0} / {1} = {2}" . format (number1 ,number2 ,Divide ))
29- if process == "Percentage" :
29+ elif process == "Percentage" :
3030 print ("{0} % {1} = {2}" . format (number1 ,number2 ,Percentage ))
31+ else :
32+ print ("Invalid Proccess!" )
3133if command == "about" :
3234 print (about )
33- if command == "exit" :
35+ elif command == "exit" :
3436 exit ()
35- if command == "help" :
37+ elif command == "help" :
3638 print ("Python calc Help" )
3739 print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
38- if command == "git-address" :
40+ elif command == "git-address" :
3941 print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
40- if command == "web-site" :
42+ elif command == "web-site" :
4143 print ("linuxuserslinuxmint.github.io" )
42- if command == "ver" :
43- print ("Version: 0.1.5.2 (Last Updated September 6 , 2023 , 18:10)" )
44- if command == "licence" :
45- print ("This Software is protected under the GPL2 license" )
44+ elif command == "ver" :
45+ print ("Version: 0.1.5.5 (Last Updated September 6 , 2023 , 22:22)" )
46+ elif command == "licence" :
47+ print ("This Software is protected under the GPL2 license" )
48+ else :
49+ print ("Invalid Command!" )
0 commit comments