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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started