Loops & Functions Final Worksheet

By Portia M
starstarstarstarstarstarstarstarstarstar
Last updated over 2 years ago
5 Questions
1
1.
Page: https://app.formative.com/library/61c332d100109028caed51d5/616060201c50f25cf249ebad
You need permission.
Want access?Sign up, log in, or ask to be invited.
1
2.
Page: https://app.formative.com/library/61c332d100109028caed51d5/616060201c50f25cf249ebad
You need permission.
Want access?Sign up, log in, or ask to be invited.
1
3.
Reorder the follow code.
  1. print(number)
  2. number -= 2
  3. while ( number < 101):
  4. number = 0
1
4.
Categorize if the loop is infinite or not
  • Infinite
  • Finite
1
5.
What will the following code output?