Code erros
#I am confused on the errors I am running into. I Would be thankfull if someone helped me out. global p1,v1,p2,v2 import cmath import math def getinput(): p1 = input("what is the initial pressure value?") v1 = input("what is the initial volume?") p2 = input("what is the final pressure?") v2 = input("what is the final volume?") return(getinput() import math import cmath global p1,v1,p2,v2 def equation(getinput): equation == (p1*v1 / p2*v2) print(equation) return(getinput()) def none(equation): if p1 == "none": equation = p1 = (v1)/(p2*v2) else: equation = (p1*v1)/(p2*v2) if v1 == "none": equation = v1 = (p1)/(p2*v2) else: equation = (p1*v1)/(p2*v2) if p2 == "none": equation = p2 = (p1*v1)/(v2) else: equation = (p1*v1)/(p2*v2) if v2 == "none": equation = v2 = (p1*v1)/(p2) else: equation = (p1*v1)/(p2*v2) print(equation)