Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

What is the difference between standard costs and budgeted costs?

Answered: 1 week ago

Question

Influences on Nonverbal Communication?

Answered: 1 week ago