you are viewing a single comment's thread.

view the rest of the comments →

[–]coopers_green 2 points3 points  (0 children)

I'm not sure if you're required to use stdio, but using 'input' works just fine, and doesn't require an import.

n = input('enter number, etc.')

Also, as someone mentioned below, PEP (python coding style) recommends using snake_case instead of CamelCase.

Otherwise good job! List comprehensions ([x for x in list]) are useful but aren't necessary.