I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Blast off!

You need to write a program which will count down from 10 to 0 and display blast off!

Enter the code below and then make the following changes –

  • Set the start to be 10.
  • Set the end condition to be greater than or equal to 0
  • Change x by -1 each loop.
import time
x = ????
while x ????? :
   print (x)
   time.sleep(1)
   x = ??????
print ("blast off")

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Information