Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PHYTON Lists 6a) use a for loop to go through each score in 2 1 # the given list of scores. # If a score
PHYTON Lists 6a) use a for loop to go through each score in 2 1 # the given list of scores. # If a score is at least 60, print "Passing" 3 4 5 # otherwise, print "Not Passing" scores = [98, 54, 86, 80, 59, 77, 92, 83, 94, 88] 8 # 6b) Modify the code to get 5 student scores. 9 # Create an empty list for student names instead of scores. 10 # Use a loop to input 5 names into the list, 11 # using the append() function. 12 # Print the list as it is, 13 # then use sort to put the list into order. 14 # Print the list again. 15 0 Exercises 6a) Use the given list of scores. Use a for loop to go through each score in the list. r a score is greater than 60, print "Passing", otherwise print "Not Passing". 6b) Modify the code above that collects 5 scores for students. Instead, create an empty list for student names. Use a loop to input 5 names into the list, using the appendO function. Print the list as it is, then use sort to put the list into order. Print the list again
PHYTON Lists
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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