I'm working on creating a function that returns the last_name, followed by a comma, a space, first_name another space, and finally last_name.
The below code gives me the correct answer:
def introduction(first_name, last_name):
return last_name + ", " + first_name + " " + last_name
print(introduction("James", "Bond"))
Bond, James Bond
However, if I use print, I get the following:
def introduction(first_name, last_name):
print(last_name + ", " + first_name + " " + last_name)
print(introduction("James", "Bond"))
Bond, James Bond
None
Angelou, Maya Angelou
None
Where does the none come from when using the print instead of return? I have looked around and I can't seem to tell which to use.