Project Milestone (partial
completion of project)
1. Create your own Language
project:
- The milestone must have a main webpage that has a
<textarea> tag that can receive multi-line input from the
user
- There needs to be a link on the page to a second page with the
instructions to the user on how to use the language (the
language commands)
- There needs to be a (submit-type) button on the main page that
will trigger a Python program to print out (a web page without
much prettification) all of the input received on the page.
- Submit the URL for the main page in Comments-to-Teacher, as
well as: for duo projects: the name of your partner, and the
division of work/responsibility
2. Survey project:
- The main survey page should be reasonably complete with all
the questions and choices that the user will have to
answer/make.
- There needs to be a button that causes some Python code to
execute.
- That Python code must do two things:
- write some new data to a file so that that file gets larger
- read and display the data in that file (send the HTML back
to the user) See
note below
- This means each time the user presses the button on the main
survey page, the user will see more data because the Python
program adds a little bit of data to the file each time it's
executed.
- Submit the URL for main survey page in Comments-to-Teacher, as
well as: for duo projects: the name of your partner, and the
division of work/responsibility
Note on reading/writing files:
The classic way to add new data to a file that already has some data
in it, consists of the following two steps:
- Open the file for reading, then read all the data and save it
(in a variable, or list or dictionary), then close the file.
- Change the data that you've read by modifying/adding-to the
list, dictionary, and then open the file for writing (which
instantly erases all of its data on disk) and then write all of
the data to the file and then close it (if you don't remember to
close it, the data may not end up in the file).