Question: Write the code for an HTML form that contains only 3 controls: 1. A text field named 'word' that users can use enter a single

Write the code for an HTML form that contains only 3 controls: 1. A text field named 'word' that users can use enter a single line of text (or a single word). 2. A reset button. 3. A submit button. PART B: Write the code for a Python program (file name as specified above) that accepts the form input and then searches through the file latinwords.txt for the word (case insensitively; i.e. case does NOT matter). The Python program MUST be stored in your /home/pi/public_html/cgi-bin/ directory. If the word is found, your program displays the word AND its definition back to the client (as HTML) in the following format: WORD=>DEFINITION For example, given the list of sample words above, if the user entered the word 'abscido', then your program would display: abscido=>to cut off, to separate, take away. If the dictionary contains multiple entries for the word, then your program would display ALL entries. For example, given the list of sample words above, if the user entered the word 'abutor', then your program would display: abutor=>to make full use of, to abuse. abutor=>to use abusive language / use a word incorrectly. You MUST test your solutions with the following words: word: lines matched abbatia (1) abutor (2) acervus (1) admiror (1) causa (3) prosum (3) quorum (2) sepius (1) veritas (1) sample records in the file: latinwords.txt ========================================== abduco : to lead, or take away / detach, withdraw. abeo : to go away, retire / depart from life, die. abeo : to digress / change / vanish, disappear. abscido : to cut off, to separate, take away. absconditus : hidden, concealed. abutor : to make full use of, to abuse. abutor : to use abusive language / use a word incorrectly. saepius sepius : often, frequently, repeatedly. 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!