Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

2. Discuss the types of messages that are communicated nonverbally.

Answered: 1 week ago