Search⌘ K
AI Features

Solution: Concatenating Strings

Explore how to combine strings and variables by concatenating user input to form personalized messages. This lesson teaches you to store input in variables, use string concatenation operators to join text with variables, and display resulting greetings and questions.

We'll cover the following...

Solution

  1. Ask the user for their first and last name. Store the value entered by the user in a variable called firstName and lastName, respectively.
firstName = user_input first
...