# This content is archived!

For the 2018-2019 school year, we have switched to using the WLMOJ judge for all MCPT related content. This is an archive of our old website and will not be updated.

In this lesson, we will be focusing on the syntax of using variables.

### Java

You may have noticed that Turing and Java use double quotes (" ") for strings, while Python uses single quotes (' '). In Turing and Java, double quotes are used for strings, while single quotes are used for single characters. In Python, you can use either double or single quotes, but Python programmers tend to prefer single quotes.

For Turing and Java, we concatenated the variables with the string. Concatenate is a fancy word for put together.

In Python, we used the str.format() command. It formats strings for us. We use {} in place of the variables, and then list the variables in order at the end.

# Practice

The following programs require user input. If you don’t know how to get user input yet, write your programs so that you can easily change the initial values of the variables instead of prompting the user for input.

Write a program where the user can enter their first name, last name, and age, and then output “first name last name is age years old.”

Write a program where the user can enter two numbers, and then output the sum of the numbers.