PCD = int(raw_input("What is PCD? "))
QOH = int(raw_input("Quantity of holes? "))
print "radius: ",
Radius = float(PCD)/2
print Radius
AOS = float(360)/QOH
print "Angle of Seperation: ",
print AOS
import math as M
def Y_value_1st(a, B):
a*round(M.degrees(M.sin(B)))
print Y_value_1st(Radius, AOS)
this prints none, instead of the intended answer, can anyone help? I'm new to python
myildirim
2,5183 gold badges20 silver badges26 bronze badges
-
1Your function doesn't return anything.vaultah– vaultah2014年06月26日 10:15:11 +00:00Commented Jun 26, 2014 at 10:15
1 Answer 1
You should return value inside the function ;
def Y_value_1st(a, B):
return a*round(M.degrees(M.sin(B)))
answered Jun 26, 2014 at 10:19
myildirim
2,5183 gold badges20 silver badges26 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
myildirim
You're welcome, if the answer is true you should close the question; click to set this answer as your accepted answer. @user3778839
lang-py