CSC105 Worksheet #13-2.docx - Group: Names: CSC105...

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

Group:Names:CSC105 Worksheet #13Performance Outcomes1.Meaning of a count-controlled repetition structure2.How to user for loop3.Meaning of a range function4.How to user range function to generate sequences5.How to use for loop to calculate running total6.Recall augmented assignment operators (+=, *=, -=, /=, //=, %=)7.Meaning a nested for loop8.How to use nested for loops9.A string is a sequence of charactersA for loop is used to model a count-controlled repetition structure. A for loop will execute a block ofstatements repeatedly using a count variable whose value is taken from a sequence of values. The loopterminates when the value of the count variable is equal to the sentinel of the sequence.Rememberthat a sentinel is used to denote the end of the sequence.The range function is important if the sequence is linear and it is a sequence of integer values.The range function generates a range object that is a sequence of integers.

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 4 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
AlbertChan
Tags
1, 3, Fibonacci number, 2

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture