[Tutor] Unexpected Indent Error Message

Peter Otten __peter__ at web.de
Fri Mar 27 13:07:51 EDT 2020


Alan Thwaits wrote:

If instead of the fancy dedent(<multiline-string>)

>         print(dedent("""
>             You jump into pod {guess} and hit the eject button. The pod
> escapes out into the void of space. Then it implodes as the ship's hull
> ruptures, crushing your body into jam jelly.
>             """))
>             return 'death'

you print something simple

         print("Hi")
             return 'death'

I'm sure you can't miss the problem :)



More information about the Tutor mailing list