Problem: Playing with the idea of exchanging variables between functions.
I am executing the following code:
def benefits():
list = ["Beautiful", "Explicit", "Simple", "Readability","Easy to share"]
return list
def statement(benefit):
print("The benifit is " + benefit )
def benefits_of_functions():
benefits_list = benefits()
for benefit in benefits_list:
print(statement(benefit))
benefits_of_functions()
I get the error:
The benifit is Beautiful
None
The benifit is Explicit
None
The benifit is Simple
None
The benifit is Readability
None
The benifit is Easy to share
None
I cannot understand the "none". Could you please help me figure out why that's in the output?