Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 5

100 bytes removed, 15:12, 4 September 2017
PART 1 - Reading Data From Files
f.closed # Object attribute (variable boolean)
</source>
:#Next, issue the following command to both read data from the file and store that data into the variable called "read_data", and then close the file to free up resources:.<source lang="python">
read_data = f.read()
read_data
13,420
edits