Python #2: Decreasing Loop Progam

Python_DecreasingLoop

#DagbaComputers
#Python
#Programmer Akinwale Owi

#
#How to write a decreasing for loop in Python
for decreasingCounter in range(10,-1,-1):
print(decreasingCounter)

#space
print(”)

#Will print when loop is finished
print(‘I put the -1 in so it would stop at 0 instead of 1’)

#End of program

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: