PYTHON #picture 1 #picture 2
Posted: Mon May 02, 2022 12:42 pm
PYTHON
#picture 1
#picture 2
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...
#picture 1
#picture 2
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...