[Tutor] beginning to code
Senthil Kumaran
senthil at uthcode.com
Sun Sep 10 08:36:00 EDT 2017
> unindent does not match any outer indention level
Means that your Intendentaion is not proper. You should align your print
statement and rest to the same level as if statement.
Use a proper editor that supports Python Syntax.
On Sun, Sep 10, 2017 at 4:32 AM, Elmar Klein <geokerbi at gmx.at> wrote:
> Hi there,
>
> im starting to learn how to code (bougt me the "automate the boring stuff
> with phyton" book).
>
> And im not going anywhere with a code sample using the "continue"
> statement.
>
> The code i should try is as following:
>
> while True:
> print ('who are you')
> name = input ()
> if name != 'bert':
> continue
> print ('hi, joe. pwd?')
> pwd = input ()
> if pwd == 'sword':
> break
> print ('access granted')
>
> But everytime this produces an error (unindent does not match any outer
> indention level) in the "print ('hi, joe. Pwd?')" sentence.
>
> What am i doing wrong?
>
> Greetings
>
> kerbi
>
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list