Question: You have opened a csv file with comma separated integer data. The opened file is intended to be read, and is being stored in the

You have opened a csv file with comma separated integer data. The opened file is intended to be read, and is being stored in the variable ET.
Which code will create a single list of all values converted to integers?
If you believe that more than one answer applies choose the best answer.
aliens =[]
for alien in ET:
alien = alien.rstrip ()
a= alien.split()
for b in range(len(alien)):
a[b]=(a[b])
aliens.append (a)
aliens =[]
for alien in ET:
alien = alien.rstrip ()
a= alien.split(",")
for b in range(len (a) :
a[b]=(a[b])
aliens.append (a)
aliens =[]
for alien in ET:
alien = alien.rstrip()
a= alien.split (",")
for b in range(len(a)):
a[b]=(a[b])
aliens.append(alien)
 You have opened a csv file with comma separated integer data.

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 Databases Questions!