Jul-29-2019, 10:48 PM
The default return value from a function is None, when the if is true it does not return anything so it defaults to None
Instead of printing you can return the string and then it would print the returned string
Instead of printing you can return the string and then it would print the returned string
print (name, "was born in",2018 - age)change to
return f'{name}, was born in,{2018-age}'