Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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

Computer Performance Engineering 10th European Workshop Epew 2013 Venice Italy September 17 2013 Proceedings

Authors: Maria Simonetta Balsamo ,William Knottenbelt ,Andrea Marin

2013 Edition

3642407242, 978-3642407246

More Books

Students also viewed these Programming questions