QUESTION IMAGE
Question
question: 16
what is the output of the following program? assume the user enters \florence\, then \fernandez\.
first_name = input(\what is your first name? \)
last_name = input(\what is your last name? \)
whole_name = first_name + last_name
print(whole_name)
fernandez florence
florence
fernandez
florencefernandez
florence fernandez
Step1: Analyze variable assignment
first_name is assigned "Florence", last_name is assigned "Fernandez".
Step2: Analyze string concatenation
In Python, + for strings means concatenation. whole_name = first_name + last_name → "Florence" + "Fernandez" = "FlorenceFernandez".
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
FlorenceFernandez