PYTHON #picture 1 #picture 2

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

PYTHON #picture 1 #picture 2

Post by answerhappygod »

PYTHON
#picture 1
Python Picture 1 Picture 2 1
Python Picture 1 Picture 2 1 (115.85 KiB) Viewed 31 times
#picture 2
Python Picture 1 Picture 2 2
Python Picture 1 Picture 2 2 (122.38 KiB) Viewed 31 times
E main.py Console Shell Markdown Files 合1: The Problem main.py : Nm in MREADME.md 1 records [ 2 ["Ahmed", 34532, "1/10/83", 3300], 3 ["Khaled", 24232, "16/1/81", 4100], 4 ["Salem", 13424, "22/5/85", 3000], 5 ["Fahad", 52323, "3/7/90", 2400], 6 ] The variable records is in main.py, which contains table data that look like this: Packager files Name ID DOB Salary poetry.lock pyproject.t... Ahmed 34532 1/10/83 3300 Khaled 24232 16/1/81 4100 Salem 13424 22/5/85 3000 ✓ Fahad 52323 3/7/90 2400 The table is stored as row major. You are required to create the following functions: 1. get_row( row, table): The function will return a row from the table as a list. The function takes two = ? CPU RAM Stor... arguments:
main.py x Console Shell Markdown M Files + The table is stored as row major. You are required to create the following functions: main.py : M+ README.md 1 records = [ 2 ["Ahmed", 34532, "1/10/83", 3300], 3 ["Khaled", 24232, "16/1/81", 4100], 4 ["Salem", 13424, "22/5/85", 3000], 5 ["Fahad", 52323, "3/7/90", 2400], 6 ] Packager files poetry.lock pyproject.t... 1. get_row( row, table): The function will return a row from the table as a list. The function takes two arguments: • row: the row number, which starts from 0 • table: The table we want to select a row from 2. get_column(col, table): The function will return a column from the table as a list. The function takes two arguments: • col: the column number, which starts from 0 • table: The table we want to select a row from 3. Print a report on salaries which shows: • Number of employees • Total Salaries paid to employees • Minimum salary • Maximum salary Average salary ? CPU RAM Stor...
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply