Using Conditional and Loop Statements
Algorithms often require steps that make decisions or perform some steps more
than one time. For example, you might need to throw out a value that doesn’t fit
with the rest of the data, which requires making a decision, or you might need to
process the data more than once to obtain a desired result, such as when you filter
the data. Python accommodates this need by providing special statements that
make decisions or let you perform steps more than once, as described in the sec-
tions that follow.
Do'stlaringiz bilan baham: |