CSC120 (Module 7)Worksheet #12.docx - Group: Names: CSC105...

This preview shows page 1 - 2 out of 3 pages.

Group:Names:CSC105 Worksheet #12Performance Outcomes1.Meaning of a repetition structure (Section 4.1)2.Types of repetition structures: condition-controlled and count-controlled (Section 4.1)3.Meaning condition-controlled: while loop (Section 4.2)4.How to define while loop in Python5.How to use while loop6.Using while loop for input validation (Section 4.6)7.Meaning of a sentinel (Section 4.5)8.How to use sentinel to control the termination of a while loop (Section 4.5)9.What is the cause of an infinite while loop?10.Augmented assignment operators (+=, *=, -=, %=, //=, /=, **=)Repetition structure: repeats the execution of a block.Condition-controlled: uses a conditional expression to control the repetition structure. Repeatsexecution of loop only if condition is true.Count-controlled: uses a count variable to control the repetition structure. Repeats the execution of looponly if the value of the count variable is within an acceptable range.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Quadratic equation, Fibonacci number

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture