Skip to content

Instantly share code, notes, and snippets.

@schappim
Created April 25, 2014 08:44
Show Gist options
  • Select an option

  • Save schappim/11282434 to your computer and use it in GitHub Desktop.

Select an option

Save schappim/11282434 to your computer and use it in GitHub Desktop.
A Python Demo Script
print "Start Loop"
w=20
for i in range(w):
# Repeat the following command 'w' number of times
start = ">" # The start
spaces = " "*(w-i) # Generate the spaces
dots = "."*i*2 # Generate the dots
end = "<"
linenumber = " "+str(i)
print(start+spaces+dots+spaces+end+linenumber)
print "End loop\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment