Question: python program show the entire list state abbreviations within thefile. there should be no duplicates. it needs to be in alphabetical order, one per line

python program
show the entire list state abbreviations within thefile.
there should be no duplicates.
it needs to be in alphabetical order, one per line with no spacesbetween the lines
once you get all that done, make it a function named UserStateswhich does not accept any values and does not return anyvalues.
Submit the function plus a main function.
The main function only needs to have one statement and that is tocall the function UserStates
open and close the file inside the function.

this is what i have so far

def main():

main()

this is the file-called - CovidResults
Date,FIPS,MMWR_week,Recip_County,Recip_State,Series_Complete_Pop_Pct,Series_Complete_Yes,Series_Complete_12Plus,Series_Complete_18Plus,Series_Complete_65Plus,Administered_Dose1_Recip,Administered_Dose1_Recip_12Plus,Administered_Dose1_Recip_18Plus,Administered_Dose1_Recip_65Plus,SVI_CTGY,Metro_status
11/14/2021,13265,46,TaliaferroCounty,GA,22.1,340,340,317,94,364,364,335,97,D,Non-metro
11/14/2021,21219,46,ToddCounty,KY,38.3,4705,4705,4504,1476,5282,5280,5050,1609,D,Non-metro
11/5/2021,42109,44,SnyderCounty,PA,42.6,17180,17180,16395,6299,21023,21023,20111,7537,A,Non-metro
11/5/2021,18131,44,PulaskiCounty,IN,41.6,5141,5141,4905,2012,5520,5520,5245,2077,A,Non-metro
11/5/2021,40045,44,EllisCounty,OK,32.3,1247,1247,1221,600,1433,1433,1403,697,B,Non-metro
7/17/2021,29195,28,SalineCounty,MO,34.1,7760,7760,7642,2971,8699,8698,8493,3159,D,Non-metro
7/17/2021,27003,28,AnokaCounty,MN,44.3,158041,157649,148451,39006,170625,170056,159871,40847,A,Metro
2/13/2021,31057,6,DundyCounty,NE,6,101,101,101,61,203,203,202,136,B,Non-metro
2/13/2021,49011,6,DavisCounty,UT,3.2,11463,11463,11410,1525,29892,29891,29737,11235,A,Metro
12/31/2020,51071,53,Giles County,VA,0,0,0,0,0,0,0,0,0,B,Metro
12/31/2020,13259,53,StewartCounty,GA,0,0,0,0,0,0,0,0,0,D,Non-metro

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!