print ("*** Application to calculate the transformer formula ***")
print ("\n")
# primary voltage (Vp = Np / Ns * Vs)
NPV = float(input("Please enter the number of turns in the primary:"))
NSV = float(input("Please enter number of turns in the secondary:"))
VSV = float(input("Please enter the secondary voltage:"))
VPV1 = NPV / NSV
VPV2 = VPV1 * VSV
print ("\n")
print("The the transformer formula value (Vp) is: %.2f" %VPV2,"V")
===============================================================
https://github.com/bornfreesoul/PythonLessons
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.