maedayx/CS112-Spring2012 — comment on commit 5af7b598afc216515cf14c80ca0be6f18129f7fe
File:  line 0
By alecgoebel:

# Homework 3

| **Part** | **Points** |
|-----------|------------|
| base | 1 |
| advanced | 0 |
| format and string functions | 0.25 |
| tracking user input and conditionals | 0.25 |
| loops | 0.25 |
| zazz | 0.25 |
| **Total** | 2 |

One my favorite prissy bot so far. I liked how you checked for the "sir", tracked if I solved the math problem for later, and all the other little things. The program feels complete instead of just a "I met the requirements." It's got the extra bit of zazz.

Here are some little places you should watch for in the future. First, reuse variables when you are done with them. I haven't double checked but it seems like you can just use `user` over and over instead of making `user1` etc. That's a personal design preference, you won't be making many programs like this anyways.

The only other things are a few comments on specific lines:

```python

# line 22
user = user.lower()
if user != "4" and user != "four":

# can be rewritten
if user != "4" and user.lower() != "four
```

```python
# throughout
name = raw_input("- What is 2+2? Try not to screw up.\n>>> ")

# how I'd do it
prompt = ">>> "
...
print "- What is 2+2? Try not to screw up."
user = raw_input(prompt)
```

```python
# sqrt is normally done like this (I believe) so it's easier to read
import math
math.sqrt(25)
````

```python
# line 73
if failed == True:

# this is a mistake EVERY compsci student makes at some point, and the remakes again.
# if's check for True
# this can just be written as
if failed:
```

Finally, for insulting my humanity, I give you the [HK-47](http://youtu.be/Vg1gTas7OAA) award

![award image](http://old-republic.com/images/kotor/characters/kotor_hk-47.jpg)