198
edits
Changes
→Create a Python Script Demonstrating Writing to Files
:::'''Sample Run 1:'''<source>
rm seneca1.txt seneca2.txt seneca3.txt
python3 lab5b.py
First Line
</source>
:::'''Sample Run 2 (run second time):'''<source>python3 lab5b.py First LineSecond LineThird LineFirst LineSecond LineThird Line Line 1Line 2Line 3 1:Line 12:Line 23:Line 3 </source> :::'''Sample Run 3 (with import):'''<source>
import lab5b
file1 = 'seneca1.txt'