altarim992/CS112-Spring2012 — comment on commit dfb78db31709a3f0cdb7c8e4790a8458a32bf026
File:  line 0
By alecgoebel:

# Homework 3

| **Part** | **Points** |
|-----------|------------|
| base | 1 |
| advanced (ascii) | 0.25 |
| **Total** | 1.25 |

Overall, well written program. The output and your code is clean. Only a quick note about your code. In the case of your `m` and `n` variables, you should define them closer to where they are used so it's easier to see what's going on. In this case they are unnecessary, since you can just use `print p, "3+4 is", (3+4)`.

Also, you can combine some the `raw_input` and `int` functions into one line:

```python
# as one line
d = int(raw_input("Enter the year you were born: "))
```

Last thing, and we will be going over this next week, all these single letter variable names get a bit confusing to keep track of. In the future, try naming things what they are, even if it is shorthand. For example `yearborn`, `favnum`, `name`, and `pbot`. Yes, it takes longer to type but it makes the code much easier to read and maintain.

Again, well done on the program. Since you seem to have a good grasp on strings, you may want to look at string formatting going forward. You can find more information on string formating [here](http://docs.python.org/library/string.html#formatstrings).