Skip to content

Commit 95b56d2

Browse files
Update main.py
1 parent 3acf14d commit 95b56d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 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

66
if choice == "average speed":
@@ -16,10 +16,10 @@
1616
if choice == "weight":
1717
subprocess.call(["python", "Formulas/Weight.py"]) #Calls Weight Formula
1818
if choice == "pressure":
19-
subprocess.call(["python", "Formulas/Pressure.py"]) #Calls Weight Formula
19+
subprocess.call(["python", "Formulas/Pressure.py"]) #Calls Pressure Formula
2020
if 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
2222
if 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
2424
if choice == "frequency":
25-
subprocess.call(["python", "Formulas/Frequency.py"]) #Calls Weight Formula
25+
subprocess.call(["python", "Formulas/Frequency.py"]) #Calls Frequency Formula

0 commit comments

Comments
 (0)