intA = 5
intB = 6
intC = 3
def equation():
return intA * intB + intC #The semi colon (;) is not used in python for line endings
def result():
return equation() #calling this function will return
print(result()) #result function is also called
#or you can direcly do in result
def result():
print(equation())
result() #as the result function automatically prints
Answers
Hey, it should say
print(equation())
Also, it shouldn't be
print(result)
it should be
result()
(so no print() call)
Remember () when calling functions.
It outputs as "None", what should i do?
you should do like this