Question
Part 1 Create a List Deduplication program with Python which eliminate any duplicates in a list and creates a new list with no duplicates. Use
Part 1
Create a List Deduplication program with Python which eliminate any duplicates in a list and creates a new list with no duplicates. Use the following list:
names = ['mary','mary','bill','sam','maria','kahn','bill','barry','george','hank','belinda','maria','karthik']
Sort each list.
Print the results which should look like the following output:
The program should involve creating a deduplication function where above list is sent to the function. The function should return the deduplicated list to be sorted and printed.
2
in the activity5 folder there should be an activity5b.py program page. Erase the current code on the page and create the code to complete the following requirements:
Similar to the test_scores.py early sample code your program should ask for a series of test score from 0 to 100 points. You will continue to add these sores to a list. When an x is ended you will print out the scores in a list format
You will also print the total of the scores, the average score and the letter grade of the average score. Use the following scale to assign a letter grade:
92 - 100 is A, 88 - 91.99% is B+, 82 - 87.99 is B, 78- 81.99% is C+, 70- 77.99% is C, 60 - 69.99% is D, < 60% is F
In the command line should look and act like the program below. Notice the out of bound error was recovered with an appropriate message and the user was asked to reenter the score
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started