Computer Science, asked by youarefuved, 4 months ago

correct the code
def printlines( f ):
f = open ('data.txt',________) Line 1
lines = f._________() Line 2
For i in lines Line 3
if i[0] == 'I':
print(i)
f.___________ Line 4
printlines(f)

pls answer fast.

Answers

Answered by HozaifaNazarSiddiqui
1

indentation are not there

mention the mode

mention the method

close

Answered by freedarajesh2003
0

Answer:

Explanation:

You can see the invalid syntax in the dictionary literal on line 4. ... len('hello') == 5 True ... For example, here's what happens if you spell the keyword for incorrectly: >>> >>> fro i in range(10): File "<stdin>", line 1 fro i in range(10): ^ SyntaxError: invalid ... python theofficefacts.py File "theofficefacts.py", line 7 print(f'Michael is ...

Similar questions