is it possible to change the following into a for loop and if so, how?

Question Answered step-by-step is it possible to change the following into a for loop and if so, how? is it possible to change the following into a for loop and if so, how?Image transcription textimport csv Odef read_csv (filename) : data = 6 with open (filename, ‘r’) as infile: 7 csvreader = csv . reader(infile) 8 for row in csvreader: data . append (row) DD 10 return data 11 12 13 print (read_csv(‘D: \states. csv’))14 Run: 20522C X E: PythonvenvScriptspython . exe E: /Python/20522C. py [[ ‘ 2021-03-29’, ‘… Show more… Show more  Computer Science Engineering & Technology Python Programming CS 4999 Share QuestionEmailCopy link Comments (0)