Uh, that and you aren't taking any input ... so ... it's not just that you were printing things wrong, but I see no raw_input() in there. Also, the easier way of doing the output is to use string formatting: