[Courses] [python]3 questions: colon placement, extension, and pydoc

Peggy Russell prusselltechgroup at gmail.com
Tue Jun 28 02:37:13 UTC 2011


> for hippopotamus in range(1, 6) :

While doing the exercises, three questions kept 
coming up:  

(1) Is there a preference in the python world for
where the colon goes (ie., `range(1, 6) :`  or 
`range(1, 6):`)

(2) Is the '.py' extension necessary (in any case)? 

(3) I don't want to jump the gun or anything, but
will 'pydoc' be covered?  Specifically, are there 
any secret usage tips :-) to get help?

Thank you.
Peg


More information about the Courses mailing list