Monday, June 15, 2020

chapter 5 week 7 quiz

chapter 5 week 7 quiz

chapter 5 week 7 quiz

Quiz

1 / 10
  1. What is wrong with this Python loop:
    n = 5
    while n > 0 :
    print(n)
    print('All done')
    1.   This loop will run forever
    2.   The print('All done') statement should be indented four spaces
    3.   There should be no colon on the while statement
    4.   while is not a Python reserved word

No comments:

Post a Comment

chapter 5 week 7 Assignment 5.2

5.2  Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entere...