File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import subprocess #import library
22
3- choice = input ("What you want to calculate : " ) #user choices which calculation he/she wants to do.
3+ choice = input ("What you want to calculate : " ). casefold () #user choices which calculation he/she wants to do.
44
55
66if choice == "average speed" :
1616if choice == "weight" :
1717 subprocess .call (["python" , "Formulas/Weight.py" ]) #Calls Weight Formula
1818if choice == "pressure" :
19- subprocess .call (["python" , "Formulas/Pressure.py" ]) #Calls Weight Formula
19+ subprocess .call (["python" , "Formulas/Pressure.py" ]) #Calls Pressure Formula
2020if choice == "kinetic energy" :
21- subprocess .call (["python" , "Formulas/Kinetic Energy.py" ]) #Calls Weight Formula
21+ subprocess .call (["python" , "Formulas/Kinetic Energy.py" ]) #Calls Kinetic Energy Formula
2222if choice == "ohm's law" :
23- subprocess .call (["python" , "Formulas/Ohm's Law.py" ]) #Calls Weight Formula
23+ subprocess .call (["python" , "Formulas/Ohm's Law.py" ]) #Calls Ohm's Law Formula
2424if choice == "frequency" :
25- subprocess .call (["python" , "Formulas/Frequency.py" ]) #Calls Weight Formula
25+ subprocess .call (["python" , "Formulas/Frequency.py" ]) #Calls Frequency Formula
You can’t perform that action at this time.
0 commit comments