Ex2 - Strings:

Objective: Learn how to use strings for the terminal input and output of text using VS Code. You’ll also learn how to store your data in variables and how to use those variables in your programs.


  1. Name the file: Ex2_Concatenating_Strings.py.
  2. Using comments, list the four coding steps in the file:
    1. Declare Variables
    2. Get Values for Variables
    3. Do Calculations
    4. Display Results
  3. Create in the second coding step, the variables named movie1 and movie2 for at least two of your favorite movies. (Remember: if there are apostrophes in the movie titles, you can use double quotes on the outside.)
  4. In the fourth coding step, print your favorite movies to the terminal in a nicely formatted list. Use the concatenation operator to separate them in the print() statement.
  5. Use newline (\n) and tab (\t) to format your output, similar to the below:

My favorite movies:
        Monty Python And The Holy Grail
        Jackie Brown


  • Note: the values for the variables movie1 and movie2 should be all lowercase. Therefore, you will need to use the title() method to return a version of each movie string where each word is titlecased. An example can be reference in the course notebook, within the Strings section.