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 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