In this lab, you're going to create a program that uses several variables and then you'll experiment with some additional assignment statetments.
Challenge Exercise 1: Your task is to write a program which computes the fraction of the year that you will spend working on Python for this course. To do that, we'll make the following assumptions:
Your program might start like this:
num_course_weeks = 14
in_class_minutes_per_week = 150
total_in_class_minutes = num_course_weeks * in_class_minutes_per_week
You should include an output statetment which prints the answer along with text that explains what the number is. For example, something like this:
And, that's actually the answer you should come up with if you make all the assumptions listed above and you do all the calculations correctly.
Here's what I'll be looking for in your solution:
=. That is, use the values of your variables in computing values for other variablesWhen you have your solution ready, submit it to codePost for the Lab 2: A year with Python assignment.
Exercise 2: Run the following code at the interactive shell, observe the output, and reflect on the questions below.
my_variable = 5
my_variable = my_variable + 1
print(my_variable)
Exercise 3: Run the following code at the interactive shell, observe the output, and reflect on the questions below.
my_variable = 5
my_variable += 1
print(my_variable)
my_variable = my_variable + 1 and my_variable += 1?-=, *=, or /=?