View Single Post
Old 08-17-2011, 02:14 PM   #8
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by PeterT View Post
Unlike many programming tools that use BEGIN / END or { } to group together sections of code, Python uses spaces or indentation to make the same sections of code.
And to explain further: In the case of a recipe, the print_version code has to be part of the AvancedUserRecipe group of code ("class"). The originally posted recipe had def print version at the same level of indent as AvancedUserRecipe, so it wasn't part of the recipe class and wasn't being processed. It was being ignored.
Starson17 is offline   Reply With Quote