Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are a chess coach. Write a program that asks how many chess players you coach and then, for each player, what their chess

  

You are a chess coach. Write a program that asks how many chess players you coach and then, for each player, what their chess rating is. The highest ratings are over 2700, anything above 2000 is expert or professional, and novices have a rating below 1200. Higher scores are better. Then output the chess player number and average score of your best and worst players. Here is some sample output. User input is underlined here but won't be in your output. How many players?5 What was the rating for player #1?1800 What was the rating for player #2?1900 What was the rating for player #23?1700 What was the rating for player #4?1200 What was the rating for player #5?2100 The best player is player #25 with a rating of 2100. The worst player is player #24 with a rating of 1200.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

def main numplayers intinputHow many players ratings for i in range1 numplayers 1 rating intinp... 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

Starting Out With Python Global Edition

Authors: Tony Gaddis

4th Edition

1292225750, 9781292225753

More Books

Students also viewed these Programming questions

Question

Show that B is a convex set with a nonempty interior.

Answered: 1 week ago