Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python language Tasks Q1: Create two functions (generate data and process data) in python, where: generate data function will generate a sequence list from

in python language image text in transcribed
image text in transcribed
Tasks Q1: Create two functions (generate data and process data) in python, where: generate data function will generate a sequence list from a random integer number based on the following specifications: The function inputs are Length of list, start and end random number. process data function will process the input list data into this function to produce new output based on the following specifications: The function inputs are data list as a sequence list, operation type as a string. There will be three operation's type: "Sorting", this will return an ascending sorted list "Max", this will return the maximum value in the input list "Min", this will return the minimum value in the input list Console Starting Lab week 3 Name: StudentID: 00000000000 Date: Jan 24, 2021 Desc: Running Question 1 #replace with your name #replace 00000000000 with your student ID # see note 3 length of list: 12 Start generating list: 3 End of generating list: 8 Type of operation: Sorting #see note-1 The generated list is: 15,7,6,4,7, 3, 4, 6, 3, 7, 3, 4] The processed list is: (3,3,3,4,4,4,5,6,6,7,7,7] Q2: Create a program that initial a sequence list of dictionaries as below: Name Tom John Jony Mick Donal David Age 19 20 17 15 16 21 Length 80 90 91 88 89 85 This program has three functions in process module and these modules are: sorting by name, this will return a sorted list dictionary based on the name sorting by length, this will return a sorted list dictionary based on the length sorting by age, this will return a sorted list dictionary based on the age Console Starting Lab week 3 Name: Student ID: 00000000000 Date: Jan 24, 2021 Desc: Running Question 2 #replace with your name #replace 00000000000 with your student ID # see note 3 Original Dictionary: [{'name': 'Tom', 'age': 19, 'length': 80}, {'name': 'john', 'age":20,"length: 90}, {'name': 'Janx', 'age': 17, 'length: 91}....) Sortedbyname: Sorted by length: Sorted by age

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_2

Step: 3

blur-text-image_3

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions