Asks the user to enter a series of 7 scores. An individual statement for each score The program should store the scores in a list. Give the list created a descriptive name Determine the lowest score and store in a variable. Drop lowest score from list. Calculate Score average after having dropped lowest score Display the following: information should be displayed as per example shown below Lowest score entered Score List after dropping lowest score The average of scores in modified list My code: score1 = (input("Enter score #1")) score2 = (input("Enter score #2")) score3 = (input("Enter score #3")) score4 = (input("Enter score #4")) score5 = (input("Enter score #5")) score6 = (input("Enter score #6")) score7 = (input("Enter score #7")) scores = [score1, score2, score3, score4, score5, score6, score7] scores.sort() lowest_score.remove(min(scores)) scores_avg = scores / len(scores) print("-------------Results-------------") print("Lowest score : ", *scores[:1]) print("Modified List : ", (lowest_score)) print("Scores Average: ", (average)) print("---------------------------------")
Asks the user to enter a series of 7 scores. An individual statement for each score The program should store the scores in a list. Give the list created a descriptive name Determine the lowest score and store in a variable. Drop lowest score from list. Calculate Score average after having dropped lowest score Display the following: information should be displayed as per example shown below Lowest score entered Score List after dropping lowest score The average of scores in modified list My code: score1 = (input("Enter score #1")) score2 = (input("Enter score #2")) score3 = (input("Enter score #3")) score4 = (input("Enter score #4")) score5 = (input("Enter score #5")) score6 = (input("Enter score #6")) score7 = (input("Enter score #7")) scores = [score1, score2, score3, score4, score5, score6, score7] scores.sort() lowest_score.remove(min(scores)) scores_avg = scores / len(scores) print("-------------Results-------------") print("Lowest score : ", *scores[:1]) print("Modified List : ", (lowest_score)) print("Scores Average: ", (average)) print("---------------------------------")
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
- Asks the user to enter a series of 7 scores. An individual statement for each score
- The program should store the scores in a list. Give the list created a descriptive name
- Determine the lowest score and store in a variable.
- Drop lowest score from list.
- Calculate Score average after having dropped lowest score
- Display the following: information should be displayed as per example shown below
- Lowest score entered
- Score List after dropping lowest score
- The average of scores in modified list
My code:
score1 = (input("Enter score #1"))
score2 = (input("Enter score #2"))
score3 = (input("Enter score #3"))
score4 = (input("Enter score #4"))
score5 = (input("Enter score #5"))
score6 = (input("Enter score #6"))
score7 = (input("Enter score #7"))
scores = [score1, score2, score3, score4, score5, score6, score7]
scores.sort()
lowest_score.remove(min(scores))
scores_avg = scores / len(scores)
print("-------------Results-------------")
print("Lowest score : ", *scores[:1])
print("Modified List : ", (lowest_score))
print("Scores Average: ", (average))
print("---------------------------------")
Expert Solution
Output
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education