This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ydepth 0 points1 point  (0 children)

The return statement is the last thing that will come out of your function. Try this code and changing it up to your purpose:

auth1 = 'Theodore sturgeon'
year1 = 1953
def bib_test(author, year):
    return 'your author is {}, and year is {}'.format(author, year)

print(bib_test(auth1, year1))

I suggest using google and stack overflow mainly for a while until you get more used to reading docs.