Question: Python. Code lab by turingscraft Errors: Assume that the first day of the year (day 1) is a Monday. Write a loop that prints out

Python. Code lab by turingscraft
Errors:
 Python. Code lab by turingscraft Errors: Assume that the first day
of the year (day 1) is a Monday. Write a loop that
prints out which day it is for all 365 days in the
year. Print the day number counting from the st art of the

Assume that the first day of the year (day 1) is a Monday. Write a loop that prints out which day it is for all 365 days in the year. Print the day number counting from the st art of the year followed by the day of the week for that day, separated by a space. For example, your first 10 lines of printing should look like: 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday 7 Sunday 8 Monday 9 Tuesday 10 Wednesday def day(): for i in range (1, 366): if (i%7 == 1): printli, end="1) I print("Monday") elif (1%7 == 2): print(i, end = "") print("Tuesday") elif (%7 3): print(i, end = " ...) print("Wednesday") elif (1%7 print(i, end = "") print("Thrusday") elif (197 == 5): print(i, end = " ") print("Friday") elif (%7 == 6): print(i, end = " "") print("Saturday") print(i, end = "") print("Sunday") else: Day() Maybe there's an unclosed paren or quote mark somewhere before this line? Assume that two variables, start and end, have already been assigned integer values. Furthermore, end is g uaranteed to be at least as big as start. Write a loop to compute the sum of all of the integers from start to end (inclusive on both sides). Assign the answer to a variable called sum. For example, for start-1 and end=3, the sum is 6 (1+2+3). For start-5 and end=10, the sum is 45 (5+6 +7+8+9+10). = start = 5 end 10 sum=0 #loop for i in range (start, end+1,1): sum+=i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!