print("This program is to be used to figure out the circuit size for air handling units that have a power factor of '1' ") print('''formula for this involves heating kw=kva=1 P=IV*sqrt3 I=P*1000/V*1.73 Ibreaker=I*1.25 Enter values''') PF=1 V=480 total_kva=float(input("enter total kva")) I=(total_kva*1000)/(V*1.73) I_breaker=I*1.25 print("current is %s" %I) if I_breaker<20: print("Current with modifed percentage '1.25' is %s, you need a 20amp breaker" %I_breaker) elif I_breaker<30: print("Current with modifed percentage '1.25' is %s, you need a 30amp breaker" %I_breaker) elif I_breaker<40: print("Current with modifed percentage '1.25' is %s, you need a 30amp breaker" %I_breaker) else: print("Current with modifed percentage '1.25' is %s, Talk to Josh about where this should go" %I_breaker)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question