Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Take the last letter of your last name and find a sports team ( any sport [ including esports ] , any country, any league

Take the last letter of your last name and find a sports team (any sport [including esports], any country, any league) whose team (or location) begins with that letter. In your program comments, be sure to give the name of the team (and any interesting or informative information about the team that you'd like to share). Then, get the team's roster (it should be available on the team's web page).
Write a Python program that uses a list to store only the last names of each player. You can enter the names interactively (but that sounds like a lot of work) or just hardcode the names into your program so that the list contents is initialized at the same time it's declared. Then, do the following things, in order:
(1) Output the contents of the list, but use an asterisk (*) to separate the player names (the chapter has an example of this using the vertical bar).
(2) Append a new player named Zebra to the list. Output the list to show that it worked.
(3) Sort the list so that it's in reverse alphabetical order. Output the list to show that it worked. (Hint: Search the web for some examples of how to sort in reverse order.)
(4) Remove the team member at position [3]. Output the list to show that it worked.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions