Question: CODE oFile = open ( ' file . txt ' , ' w ' ) oFile.write ( ' 1 ' ) oFile.write ( ' 2
CODE
oFile openfiletxtw
oFile.write
oFile.write
oFile.write
oFile.close
tmp
iFile openfiletxt
for line in iFile:
tmp
iFile.close
In the code above, how many times is the line tmp executued?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
