Changes

Jump to: navigation, search

OPS435 Python Lab 5

236 bytes added, 16:03, 1 October 2017
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'
198
edits

Navigation menu