Problems
Program good_doggie.py
- For a series of dog information requests, the program reports what it knows about the dog.
- Its dog information data source is located at URL
- Questions
- How should we store the dog information?
- How do we get and store the input?
- How many times do we set up the dog information
- What times of loops do we need?
- Sequential
- Nested
- Mixture of nested and sequential
Program what_did_you_say.py
- Translate user text to English. The program makes use of the translation dictionary CSV web file
- If a user word is unknown, the word is printed with delimiters > and < surrounding it.
- Some possible runs
Enter phrase to be translated: dónde está mi lápizwhere is my pencil
Enter phrase to be translated: est la baguette fraîche aujourd'is the baguatte fresh today
Enter phrase to be translated: je %#@# ból svayam!!I >%#@#&#< hurt myself >!!<
Enter phrase to be translated: hvor er den skriget maleri af Munchwhere is the scream painting by Münch
Enter phrase to be translated: hacer 뭔가 frais oggido something cool today
- Questions
- How should we store the translations?
- How should we store the input?
- How should we store the result?
- What times of loops do we need?
© 2019 Jim Cohoon | Resources from previous semesters are available. |