Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 5

65 bytes added, 13:20, 4 September 2017
PART 1 - Reading From Files
== PART 1 - Reading From Files ==
:'''Perform the Following Steps:'''
::#To startLaunch your Centos VM, open the a shell terminal (as a regular user) and start a new ipython3 shellsession:<source lang="python">
ipython3
</source>
:::4. Before proceeding, make certain that you identify any and all errors in lab5a.py. When the checking script tells you everything is OK before proceeding to the next step.
<br><br>
 
== PART 2 - Writing To Files ==
There is a danger involved in this next section, when opening files for writing, Python assumes content in the file is no longer wanted and it's immediately deleted. If the file contents are important, append to the file instead.
13,420
edits