Chapter 4, Making Decisions – Python Control Flows

Questions

Answers

Q1. How many times can the elif statement appear in the if/elif/else flow?

As many times as it is needed

Q2. Which statement starts a conditional block of code that is used to make decisions?

if

Q3. Which statement is only used at the end of a conditional block of code?

else

Q4. What is a global variable?

Both 2 and 3

Q5. What is a while loop?

A loop that repeats code until something different happens, and then it stops

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.187.24