Executed in Spyder 3.3.2.
# function def SumFunction(Value1, Value2): # print line print('Let\'s add two numbers!') # print line, perform addition print (str(Value1) + ' + ' + str(Value2)+ ' = ' + str((Value1 + Value2))) # call function SumFunction(1,2)
Output
Notes