from zstudentDAO import studentDAO 
 #create 
latestid = studentDAO.create(('mark', 45)) # find by id 
result = studentDAO.findByID(latestid); 
print (result) 
 #update 
studentDAO.update(('Fred',21,latestid)) 
result = studentDAO.findByID(latestid); 
print (result) 
 # get all  
allStudents = studentDAO.getAll() 
for student in allStudents:   
    print(student) 
 # delete 
studentDAO.delete(latestid)
from zstudentDAO import studentDAO 
 #create 
latestid = studentDAO.create(('mark', 45)) # find by id 
result = studentDAO.findByID(latestid); 
print (result) 
 #update 
studentDAO.update(('Fred',21,latestid)) 
result = studentDAO.findByID(latestid); 
print (result) 
 # get all  
allStudents = studentDAO.getAll() 
for student in allStudents:   
    print(student) 
 # delete 
studentDAO.delete(latestid)
#create # find by id #update # get all # delete