---
description: 1.2 Escape Sequences
---

# Escape Sequence Assignment

1. create a variable called `firstLetter` and store the first letter of your last name as a string. The print the value stored is first letter surrounded by '. For example, I would display `'W'`
2. `print` “Practice is not the thing you do once you are good. It is the thing you do that makes you good.” - Malcolm Gladwell _Note: you need to display the “ “._
3. display your first name and last name on one line together with your date of birth on another line and indented using only one `print` command
4. create a function called `yearAgan(y)` that accepts the numeric year (for example "1985") as the input `y` and prints the following `"It is 1985 all over again"`&#x20;
5.  Write one `print` statement that produces the following output:

    ```
    / \ // \\ /// \\\
    ```
6. create a function `spikey()` that has no value passed in, but when it is called produces the following output. Each line of output should be its own `print` command.

![](https://537336712-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRkck3YtWvrksjZO3Z7%2F-MSEUwIEAYpbrPrQ9WcS%2F-MSEW-dzhkcoRDrGbkp4%2Fimage.png?alt=media\&token=63816d33-4609-4e35-8d5c-0e070dd359ec)

Your code should have at least four comments that explain the purpose of a function, variable or command statement . Programming convetion dictatest that all of your procedures should be together (at the top of the program file) and your procedure calls should be together at the bottom of the file.&#x20;

![](https://537336712-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRkck3YtWvrksjZO3Z7%2F-MS9k1os_GHjDS3TLGkZ%2F-MS9lAvu9mXk6O7whUIM%2Fimage.png?alt=media\&token=bffed3b1-329f-42da-8d73-9c1535e40f59)

![](https://537336712-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRkck3YtWvrksjZO3Z7%2F-MSEXOm6-2Oqpq6QMtZ7%2F-MSEXebtvF2t6-eICxr5%2Fimage.png?alt=media\&token=4c256e63-5c11-482d-8a06-6e03781cc9c2)

There is no starter code or txt file for this - you are starting from a blank page in a visualizer.&#x20;

When you are finished - upload your .txt file to the assignment in schoology.

