CS 105 Lecture Notes - Lecture 8: Control Flow, Infinite Loop, George Boole

63 views3 pages
Verified Note

Document Summary

Two-way decision structure: the two-way decision structure, for use when there are two mutually exclusive options, called a(cid:374) (cid:858)if-else(cid:859) (cid:271)lo(cid:272)k. in : Sequences: recall: sequences in python are just lists of things. Indefinite loop: so far, the loops in labs and mps have been definite loops, definite loop- number of iterations is known prior to the first execution of the body of the loop. Indefinite loop- number of iterations is unknown when the body begins executing: also called a conditional loop. Indefinite or conditional loops: no pre-knowledge of numbers of iterations, (cid:272)alled a (cid:858)while(cid:859) loop, (cid:455)ou loop while a (cid:272)o(cid:374)ditio(cid:374) is true iterate until a condition is met, while :

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents