Changes

Jump to: navigation, search

OPS435 Python Lab 5

6 bytes added, 08:09, 9 September 2017
LAB REVIEW
# Write Python code to efficiently store the contents of the file in question #2 as a large string (including new-line characters) called '''customer-data'''.
# Write Python code to store the contents of the file in question #2 as a list, removing the new-line characters.
# What is the purpose of '''closing ''' an open file? Write a Python command to close the file opened in question #2.
# Write the Python command to confirm you successfully closed the '''customers.txt''' file in question #5. What is the returned status from that command to indicate that the file has been closed?
# What is the difference between opening a file for writing data as opposed to opening a file for appending data?
13,420
edits

Navigation menu