jwsander/CS112-Spring2012 — comment on commit 9b7404b2dca164a54f9683e2264af40d3244a290
File:  line 0
By jwsander:

Ah ha! That makes it much cleaner. Thanks!

-John

Quoting Alec Goebel
:

> # Homework 3
>
> | **Part** | **Points** |
> |-----------|------------|
> | base | 0.75 |
> | advanced | 0 |
> | for the lulz and alternate solutions | 0.25 |
> | **Total** | 1 |
>
> Blockhead waiting...cute. Overall, well done. Your code and output
> looks clean, albeit with a lot of extra spaces. If you used string
> concatenation instead of commas, you would have less spaces.
>
> ```python
>>>> print "a", "b"
> a b
>>>> print "a" + "b"
> ab
> ```
>
> Only other thing is you are doing your `raw_input` in a way I did
> not expect. Trailing commas at the end of print lines work, I use
> them all the time, and are a great way to make your code cleaner.
> That said, for this program I was looking for this:
>
> ```python
> prompt = n + ":"
> # ...
> print "PrissyBot: In what year were you born?"
> o = int(raw_input(prompt))
>
> # a simpler example
> n = int(raw_input("Enter a number: "))
> ```
>
> Anyways, for making me shake my head, I give you the
> [facepalm](http://youtu.be/EAxGfmvQVZw) award
>
> ![award image](http://avatar.identi.ca/1765-96-20090311100848.jpeg)
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/jwsander/CS112-Spring2012/commit/9b7404b2dca164a54f9683e2264af40d3244a290#commitcomment-945284
>