13,420
edits
Changes
→Create a Python Script Demonstrating Reading Files
:::*The script should contain no errors
::::'''Sample Run 1:'''<source lang="python"code>
python3 lab5a.py
Hello World
Last line
['Hello World', 'This is the second line', 'Third line', 'Last line']
</sourcecode>
::::'''Sample Run 2 (with import):'''<source lang="python">