Initial transfer of larger repo from git. IF full history and branches are needed must go to github at https://github.com/DulcisL/CCUCoding.git
This commit is contained in:
commit
c09ce40be0
4048 files changed
+603256
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#working with files
|
||||
#why write to files
|
||||
#no database required
|
||||
#the ability to save data when program has ended
|
||||
#the ability to restore data when program is started
|
||||
|
||||
#create a text file
|
||||
#create a file object variable
|
||||
#open takes a file path
|
||||
#R - Read
|
||||
#W = Write
|
||||
#O - Overwrites the file
|
||||
#Ab - Appends to beginning
|
||||
#Ae - Appends to end
|
||||
#E - Generates errors
|
||||
#mode r - RE
|
||||
#mode r+ - RWAe
|
||||
#mode w+ - RWAb
|
||||
#mode a - WAeE
|
||||
#mode w - WOAb
|
||||
|
||||
#+f causes an error FileNotFoundError
|
||||
#catch the error and create the file if error occurred
|
||||
#Import the file with the class
|
||||
|
||||
#exceptions - a process to control errors that may happen in your program
|
||||
#in programming this is how you estimate and handle error to keep your program from crashing.
|
||||
|
||||
#ask user to enter numbers (enter any character to stop)
|
||||
|
||||
#Get an items from a list at index 5 and index 7
|
||||
#catch any errors
|
||||
Reference in new issue
Block a user