Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How i provide it import csv covid_data = [] with open('covid_data.txt', newline = '') as covid: txt_reader = csv.reader(covid, delimiter='t') for row in txt_reader: covid_data.append(row)
How i provide it
import csv covid_data = [] with open('covid_data.txt', newline = '') as covid: txt_reader = csv.reader(covid, delimiter='\t') for row in txt_reader: covid_data.append(row) I How many items are in the covid_data list? I will add a len() to count the number of items. [9]: # print("The", len(covid_data), "represent the number of covid items") I The 192 represent the number of covid items Using the type function that we used in Week 2 please determine the type of each item in covid_dat item in the list. We covered this in class in Week 4 Am using the for loop & the Type that determine the type of each items. [18]: # items = 192 for i in range(1,193): print("the type of item", i, type(items)) the type of item 1 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started