Question: Help please Given a file 'integers.txt' with the following lines: -5 2 What will be output by the following Python script when run in the
Help please
Given a file 'integers.txt' with the following lines: -5 2 What will be output by the following Python script when run in the same directory as the file. fh-open ('integers.txt') sel integers-i for line in fh: integer- int(line) if integer0: sel_integers.append (integer) print (sel_integers) Traceback (most recent call last) File "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
