Python help needed urgent!!

Follow all instructions for full points. There are two parts.PART A: Write all code in the main function:make a dictionary for nine Tampa Bay Rays (see below). Use the player names as keys and a list for each value. See page 374.Each value list should hold the position played by the player, the batting order, and current batting average.When the dictionary is complete, use a for loop to display the dictionary keys and values.Next, use loop(s) to print the “lineup” (the dictionary in batting order). Duplicate the sample output for full points.Pull Rivera and DeJesus. Substitute Wilson as catcher and Beckham as DH (see sample output).Reprint the new lineup.SAMPLE OUTPUTRays startersDeJesus [‘DH’, 6, 299]Loney [‘1B’, 4, 222]Rivera [‘C’, 9, 194]Forsythe [‘2B’, 5, 304]Souza Jr [‘RF’, 2, 229]Longoria [‘3B’, 3, 282]Cabrera [‘SS’, 7, 214]Kiermaier [‘CF’, 1, 240]Guyer [‘LF’, 8, 274]Today’s lineupBatting 1 : CF Kiermaier ,current avg: 240Batting 2 : RF Souza Jr ,current avg: 229Batting 3 : 3B Longoria ,current avg: 282Batting 4 : 1B Loney ,current avg: 222Batting 5 : 2B Forsythe ,current avg: 304Batting 6 : DH DeJesus ,current avg: 299Batting 7 : SS Cabrera ,current avg

💡 Buy the answer for only $12 Get it now →

: 214Batting 8 : LF Guyer ,current avg: 274Batting 9 : C Rivera ,current avg: 194Lineup changedBatting 1 : CF Kiermaier ,current avg: 240Batting 2 : RF Souza Jr ,current avg: 229Batting 3 : 3B Longoria ,current avg: 282Batting 4 : 1B Loney ,current avg: 222Batting 5 : 2B Forsythe ,current avg: 304Batting 6 : DH Beckham ,current avg: 200Batting 7 : SS Cabrera ,current avg: 214Batting 8 : LF Guyer ,current avg: 274Batting 9 : C Wilson ,current avg: 152PART B: Write all code in the main function:create an empty set.use a loop to add 10 random integers, all from 10 to 30 inclusive, to the set.use another loop to process the set:display all elements of the set on one line separated by ** (see sample outputs).count how many elements are even and how many elements are odd.display the counts.SAMPLE OUTPUT12**16**17**18**20**21**22**23**24**28**Set has 7 even numbers and 3 odd numbersSAMPLE OUTPUT10**12**14**16**18**20**21**22**25**26**Set has 8 even numbers and 2 odd numbersCreate a folder that identifies you and Assignment 3 such as smith_asst3 or asst3_jones. Save all Python programs to this folder. Zip the folder. No .rar files allowed. Upload the zip to the Assignment 3 drop box.

💡 Buy the answer for only $12 Get it now →