May-04-2024, 06:38 PM
(May-04-2024, 11:36 AM)Gribouillis Wrote:(May-04-2024, 11:12 AM)husksedgier Wrote: I would like to understand where I am going wrong.All functions without areturn
statement return None in Python. If you want to return another value, include a return statement.
In your case however,apply_raise()
is a "procedure", logically speaking: it does something (apply a raise) but it does not need to return any value. You could perhaps execute the action, then print the employee's pay instead of the result of the function.
Thanks a ton for shedding light... I'm still waddling through the Python jungle, barely out of the crib!