test your knowledgequiz test your knowledgeanswers assignmentsexpressionsand prints assignment statements assignment statement forms sequence assignments extended sequence unpacking in python multiple-target assignments augmented assignments variable name rules expression statements expression statements and in-place changes print operations the python print function the python print statement print stream redirection version-neutral printing summary test your knowledgequiz test your knowledgeanswers if tests and syntax rules if statements general format basic examples multiway branching python syntax revisited block delimitersindentation rules statement delimiterslines and continuations few special cases truth values and boolean tests the if/else ternary expression summary test your knowledgequiz test your knowledgeanswers while and for loops while loops general format examples breakcontinuepassand the loop else xii table of contents