Steps to solving a problem:
Sometimes you actually need a response from an animate object. If you actually want a helpful response, it helps to provide the right information.
Things to consider.
Vague questions get vague answers.
Make it clear how someone can help you.
If you resolve it makes sure to help others who would have solved it.
What looks easier to read?
def square(x):
return x*x
def sum_of_squares(x, y):
return square(x) + square(y)
or
def square(x):
return x * x
def sum_of_squares(x, y):
return square(x) + square(y)