So I'm writing a python program that either sets the alarm off or doesn't, but can't seem to find my mistake for R1.
T = float(input("What is the temperature in F?"))
from math import *
e=2.71828182845904523536028747135266249775724709369995
R1 = ((33192)*e)**3583((1/T)-(1/40))
P1 = ((156300/R1) + 156,300)
P2 = ((156300/312600))
if P1 < P2:
#print("The alarm will be sound")
else:
#print("The alarm will not be sound")
R1 = ((33192)*e)**3583((1/T)-(1/40))
TypeError: 'int' object is not callable
Aucun commentaire:
Enregistrer un commentaire