Apr-07-2019, 12:08 PM
If you just create a function and don't call it nothing will happen
def a_func(a_number): return a_number + 10
Output:
The function need to be called with arguments if the function requires themdef a_func(a_number): return a_number + 10 a_func(2)
Output:
again there was no output so a print is required to see the return from the functiondef a_func(a_number): return a_number + 10 print(a_func(2))
Output:12