> if condition_C: > instruction_10 > instruction_11 > instruction_12 > ---- > There are 4 spaces in front of instruction_10, 3 spaces in front of > instruction_11 and 5 spaces in front of instruction_12. > > What would happen to instruction_11 and instruction_12? Would Python > ignore them? Or would they be considered instructions outside the > if-clause? >
You should get an error at program parse time, as the system keeps track of the indentation used to begin new blocks. If it sees an indent level that is inconsistent with those beginnings, it should know to signal a parse error. Please feel free to ask questions. Good luck! > Thanks again. > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor