> For the complete documentation index, see [llms.txt](https://www.pythonclassroom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pythonclassroom.com/python-variables/variables-activity.md).

# Variables Problems

## Problem 1

print("Problem 1")

Assign the variable name to your name and combine it with the words, “Welcome to my program!”.

## Problem 2

print("Problem 2")

Create variables for name, street address, city, state and zip code.

Print your name and mailing address as it would appear on the outside of an envelope.

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LqWa1qpl1ePpDcPbzn0%2F-LqWaas3Gbn6ROHdNTxQ%2FScreen%20Shot%202019-10-06%20at%2011.04.58%20AM.png?alt=media\&token=5ee46d05-4b3c-4b3e-a3c6-c47c723eb200)

## Problem 3

print("Problem 3")

In this problem, you're going to write a paragraph about yourself.

Create the following variables and assign each to a sentence about yourself.

* sentence1
* sentence2
* sentence3
* sentence4
* sentence5

Print the paragraph.

## Problem 4

print("Problem 4")

The 8 parts of speech are a noun, verb, adjective, pronoun, preposition, conjunction and interjection. &#x20;

| part of speech | meaning                                                                                                                                                                                                               |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| noun           | a word (other than a pronoun) used to identify any of a class of people, places, or things ( common noun ), or to name a particular one of these ( proper noun ).                                                     |
| verb           | a word used to describe an action, state, or occurrence, and forming the main part of the predicate of a sentence, such as hear, become, happen.                                                                      |
| adjective      | a word or phrase naming an attribute, added to or grammatically related to a noun to modify or describe it.                                                                                                           |
| adverb         | a word or phrase that modifies or qualifies an adjective, verb, or other adverb or a word group, expressing a relation of place, time, circumstance, manner, cause, degree, etc. (e.g., gently, quite, then, there ). |
| preposition    | a word governing, and usually preceding, a noun or pronoun and expressing a relation to another word or element in the clause, as in “the man on the platform", "she arrived after dinner", "what did you do it for?" |
| conjunction    | a word used to connect clauses or sentences or to coordinate words in the same clause (e.g. and, but, if).                                                                                                            |
| interjection   | an exclamation, (e.g. ah!, dear me! ).                                                                                                                                                                                |

Create the following variables for each part of speech and assign appropriate values.

* noun&#x20;
* verb&#x20;
* adjective&#x20;
* adverb&#x20;
* preposition&#x20;
* conjunction&#x20;
* interjection

Print each variable on a single line.

## Problem 5

![Source: Mad Libs](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LkT9Q8UwqdGKHKBLD64%2F-LkTAqMikQeH5wSsu60j%2FScreen%20Shot%202019-07-23%20at%205.35.11%20AM.png?alt=media\&token=d54293b1-881b-4779-8c63-1e08b7b39219)

print("Problem 5")

Print a sentence about yourself using at least 4 variables from Problem 4.

## Problem 6

print("Problem 6")

Assign new values to the variables you created in Problem 5 about your friend. Print the new sentence.

## Problem 7

print("Problem 7")

How much money do you have?  Assign this value to the variable money.

Print a sentence using the variable money.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.pythonclassroom.com/python-variables/variables-activity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
