1
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
asked Jun 26, 2014 at 10:14
1
  • 1
    Your function doesn't return anything. Commented Jun 26, 2014 at 10:15

1 Answer 1

2

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
Sign up to request clarification or add additional context in comments.

1 Comment

You're welcome, if the answer is true you should close the question; click to set this answer as your accepted answer. @user3778839

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.