Question: PLEASE SOLVE IN PYTHON IN PYCHARM. If it is desired, the places of two employees can be swapped on this table. According to the information

PLEASE SOLVE IN PYTHON IN PYCHARM. If it is desired, the places of two employees can be swapped on this table. According to the information entered, it is required to update and print the updated table on the screen.

The information on which days and intervals an employee worked should be able to be printed on the screen if requested.

Before Code is;

import random lst=[] i=1 f=0 while i<=50: num=random.randint(1,5) if lst.count(num)<10: lst.append(num) i=i+1 print(f" Monday Tuesday Wednesday Thursday Friday") # Print for j in range(10): if j < 9: print(f"Interval {j + 1}:", end=" ") print(f"{lst[f + 1]} {lst[f + 2]} {lst[f + 3]} {lst[f + 4]} {lst[f + 5]}") f = f + 4 else: print(f"Interval {j + 1}:", end=" ") print(f"{lst[f + 1]} {lst[f + 2]} {lst[f + 3]} {lst[f + 4]} {lst[f + 5]}")

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!