0 of 11 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Your time:
Time has elapsed
Good work attempting the practice problems!
Please leave a comment below if you require any clarifications or send an email to [email protected] if you have any comments about this quiz.
You have completed this lesson!
Write a python program that takes a tuple containing number and displays the frequencies of different elements?
Use the values: (1, 3, 4, 1, 2, 1, 1, 3, 4, 3, 5, 1, 2, 5, 3, 4, 5).
hint: Use a set to get all the unique elements.
This response will be reviewed and graded after submission.
Write a python program to sort a tuple using sorted function? Once sorted, see if you can reverse sort it.
Given x = (2, 8, 1, 4, 6, 3, 7)
This response will be reviewed and graded after submission.
Write a python program that finds the maximum value from a tuple using the max function?
Given: a = {4,12,43.3,103.25,19,100}
This response will be reviewed and graded after submission.
Write a python program that reverses a list using the reversed function?
Given: random = [10, 11, 12, 13, 14, 15]
This response will be reviewed and graded after submission.
Write a python program that sums all the integers present with in a list?
Given:
numbers = [1,2,3,4,5,1,4,5]
This response will be reviewed and graded after submission.
Write a python program to show the simple use of enumerate function over a list?
Use the list:
l1 = [“eat”,”sleep”,”repeat”]
Hint: “enumerate” assigns an index value to each of the elements. Then gives you an iterator so you can get both index, element. Use it to display the values.
Recall that iterators are simply something that one-at-a-time points to every element in the structure.
This response will be reviewed and graded after submission.
Write a python program that zips three different lists using the zip function in python?
Given:
name = [ “Manjeet”, “Nikhil”, “Shambhavi”, “Astha” ]
roll_no = [ 4, 1, 3, 2 ]
marks = [ 40, 50, 60, 70 ]
This response will be reviewed and graded after submission.
Write a Python program to sum all the values in a dictionary?
my_dict = {‘data1′:100,’data2′:-54,’data3’:247}
This response will be reviewed and graded after submission.
Write a Python program to get the maximum and minimum of all values in a dictionary?
my_dict = {‘x’:500, ‘y’:5874, ‘z’: 560}
This response will be reviewed and graded after submission.
Write a Python program to find the length of a set?
Given the values: 5, 10, 3, 15, 2, 20
This response will be reviewed and graded after submission.
Write a Python program to find maximum and the minimum value in a set?
Given the values: 5, 10, 3, 15, 2, 20
This response will be reviewed and graded after submission.