Question: PHYTON Lists 6a) use a for loop to go through each score in 2 1 # the given list of scores. # If a score
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
