Key Word(s): Databases
Read data from the candidates.txt file and enter it into a candidates table. This should be similar to the one created in Lecture 20.
Hints:
- Copy the necessary set-up from the cells in Lecture 20.
- Be careful not to copy blindly! You will get an error if you do.
- To skip the header in
candidates.txtyou can use thenext()method. - You will need to do a little processing on the input to split along the
|characters.
Deliverables¶
PP11.py.