Changes

Jump to: navigation, search

OPS435 Python Lab 5

115 bytes added, 09:11, 9 September 2017
LAB REVIEW
# 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? What can be the consequence if you don't understand the difference between writing and appending data?
# Write a Python command to open the file '''customer-data.txt''' for writing data.
# Write a Python command to save the text: '''customer 1: Guido van Rossum''' to the opened file '''customer-data.txt'''
13,420
edits

Navigation menu