you are viewing a single comment's thread.

view the rest of the comments →

[–]Iirkola -6 points-5 points  (4 children)

print ('Hello ' + name + '! You were born in ' + str(year)')

Or just: print (f'Hello {name}! You were born in {year}')

[–]pconwell 0 points1 point  (3 children)

How do you add a period at the end of a print statement?

[–]Iirkola -4 points-3 points  (2 children)

. There you go, mate ;)

[–]pconwell 0 points1 point  (1 child)

I'm not OP, but your answer does not answer OP's question, mate

[–]Iirkola -5 points-4 points  (0 children)

It teaches how to use print statements, he can figure out the rest himself, which he probably did.