This is my code:
f_name = input('First name?')
l_name = input('Last name?')
print(f_name, l_name)
I want to write the answers with quotes around the variables (so f_name
, l_name
). The answer my professor gave me is this:
print ("\"" + first_name + "\"" + "\t\"" + last_name + "\"")
What I do not quite get here is why he uses the '+' and why he uses so many quotation marks. Can somebody help me?