<jupyter_start><jupyter_text>![](https://ga-dash.s3.amazonaws.com/production/assets/logo-9f88ae6c9c3871690e33280fcf557f33.png) Unit 1 Lab: Variables OverviewWelcome to the first unit lab!- At the end of each course unit, you'll complete a lab. - Each lab builds upon its predecessor.- Over the course of these six labs, we'll build a weather forecasting application.   - This application will read in historical weather data, process that data, and make a current weather forecast based on the date a user enters. Goal Your goal for this lab is to write some variables, declare their values, and print them out.    Strings - Define a variable, `project_title`.  - Set the value as equal to `"Weather Forecast Application"`.  - Print the variable.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>- Assign a new string value to your `project_title` variable and print the new value.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>- Create a new variable, `message`.- Set the value of `message` as equal to the string `"Your weather forecast"`.- Print the `message` variable.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>- Create a new variable called `day_of_week`. Assign it the string value `for today is: `.  - Create a new variable called `message_to_user`.  - Set its value to the concatenated string of `message` and `day_of_week`.- Then, print the result of `message_to_user`.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>Next, we want to print the following statement:> Your weather forecast for today is: Partly cloudy with a chance of thunderstorms.- Create a new variable, `todays_forecast`.  - Set this variable to `"Partly cloudy with a chance of thunderstorms"`.  - Print the variables `message_to_user` and `todays_forecast`.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>NumbersNow, set a new variable, `ten_year_avg_daily_highs`, as equal to a value of `68`.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>Create a new variable, `total_number_of_days_of_weather_data`, with a value of `87578`.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>The high temperature for today is 85 and the low is 69. Create a new variable, `todays_range`, which is the result of `todays_low` subtracted from `todays_high`. Print the result of `todays_range`.<jupyter_code>todays_high = 85
todays_low = 69

# Enter your code below:<jupyter_output><empty_output><jupyter_text>When we calculate the chance of precipitation, we'll get the result in decimal form. We want to display this as a percentage to the user. - Convert `chance_of_precipitation` from a decimal to a percentage by multiplying it by 100.  - Print the result.<jupyter_code>chance_of_precipitation = 0.15

# Enter your code below:<jupyter_output><empty_output><jupyter_text>Set `avg_daily_high` as equal to the average high for the week using the variables below, then print the result.<jupyter_code>mondays_high = 89
tuesdays_high = 87
wednesdays_high = 88
thursdays_high = 92
fridays_high = 94

# Enter your code below:<jupyter_output><empty_output><jupyter_text>Mixed Practice- Use [Python f-strings](https://docs.python.org/3/reference/lexical_analysis.htmlf-strings) to print the following line using variables shown inside the  brackets: > The `project_title` processes `total_number_of_days_of_weather_data` days of data to produce its forecasts.<jupyter_code># Enter your code below:<jupyter_output><empty_output><jupyter_text>- Print the following output in a single line of code using the following four variables:  - `message_to_user`  - `todays_high`  - `todays_low`  - `chance_of_precipitation` > Your weather forecast for today is: High of 85, low of 69, with a 15% chance of precipitation.<jupyter_code># Enter your code below:<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0832913940613991, 'fraction_numerical': 0.01560140915953699, 'mean_word_length': 5.877162629757786, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 52, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '12', 'dir': 'jupyter-structured-clean-dedup', 'id': '232711', 'license': 'MIT', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1221, 'n_words': 448, 'path': 'unit-1-variables/instructor-resources/03-unit-lab-1/students.ipynb', 'repo_name': 'rodriguezda/python-programming-104', 'size': '3974'}