Computers and Technology
Chapter 6: Use a list to store the playersUpdate the program so it allows you to store the players for the starting lineup. Thisshould include the player's name, position, at bats, and hits. In addition, the programshould calculate the player's batting average from at bats and hits.Console====:MENU OPTIONS1 Display lineup2 Add player3 Remove player-4 Move player5Edit player position6 Edit player stats7 - Exit programPOSITIONSC, 1B, 2B, 3B, SS, LF, CF, RF, P=======Menu option: 2Name: MikePosition: OFInvalid position. Try again.POSITIONSC, 1B, 2B, 3B, SS, LF, CF, RF, PPosition: CFAt bats: 4Hits: 1Mike was added.1234Menu option: 1PlayerBaseball Team ManagerJoeTomBenMikeHits: 3Mike was updated.Menu option: 6Lineup number: 4You selected Mike AB=0 H=0At bats: 10Menu option: 4Current lineup number: 4Mike was selected.New lineup number: 1Mike was moved.Menu option: 7Bye!POSPSS3BAB101194H2431==================AVGSpecificationsUse a list of lists to store each player in the lineup.Use a tuple to store all valid positions (C, 1B, 2B, etc).Make sure that the user's entry for position is valid, and entries for hits and at batsmake sense.0.20.3640.3330.25