*.py file, via Moodle.
Here are some examples of project ideas. You are welcome to use any of these. Feel free to expand (or simplify) any of these suggestions; alternatively, you are greatly encouraged to pursue your own project ideas. In any event, make sure your submissions fulfill to the above requirements.
Here is a sample file that could be used for translations. The example below employs that file. Note that this program does not take grammar or context into account in any way.
>>> translator('engSpan.txt')
> the fox jumps up
el zorro salta arriba
> the fox jumps over the moon
el zorro salta [unknown] el luna
> that man is crazy
este hombre es loco
>
>>>
In this example, the program is run three times. Observe how changes are persistent between runs.
>>> gradebook('csci150.txt')
Add or Lookup? Add
Student name: Moe
Grade: 50
Add or Lookup? Add
Student name: Larry
Grade: 80
Add or Lookup? Add
Student name: Curly
Grade: 70
Add or Lookup? Add
Student name: Moe
Grade: 90
Add or Lookup? Add
Student name: Curly
Grade: 100
Add or Lookup?
>>> gradebook('csci150.txt')
Add or Lookup? Lookup
Student name: Moe
Grades: [50, 90]
Average: 70.0
Add or Lookup? Lookup
Student name: Curly
Grades: [70, 100]
Average: 85.0
Add or Lookup? Lookup
Student name: Larry
Grades: [80]
Average: 80.0
Add or Lookup? Add
Student name: Larry
Grade: 40
Add or Lookup? Lookup
Student name: Larry
Grades: [80, 40]
Average: 60.0
Add or Lookup?
>>> gradebook('csci150.txt')
Add or Lookup? Lookup
Student name: Larry
Grades: [80, 40]
Average: 60.0
Add or Lookup?
>>>
>>> smartTurtle('shapes.txt')
shape? square
shape? triangle
shape? asdf
Sorry, not present
shape?
>>>
Here is the image: