-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab1of8.py
More file actions
14 lines (10 loc) · 774 Bytes
/
Copy pathLab1of8.py
File metadata and controls
14 lines (10 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#In this quiz, you’ll need to change the types of the input and output data in order to get the result you want. Calculate and print the total sales for the week from the data provided. Print out a string of the form "This week's total sales: xxx", where xxx will be the actual total of all the numbers. You’ll need to change the type of the input data in order to calculate that total.
mon_sales = "121"
tues_sales = "105"
wed_sales = "110"
thurs_sales = "98"
fri_sales = "95"
#TODO: Print a string with this format: This week's total sales: xxx
# You will probably need to write some lines of code before the print statement.
total = int(mon_sales) + int(tues_sales) + int(wed_sales) + int(thurs_sales) + int(fri_sales)
print(f'This week\'s total sales: {total}.')