Skip to content

Instantly share code, notes, and snippets.

@rioleo
Created November 15, 2011 19:08
Show Gist options
  • Save rioleo/1368000 to your computer and use it in GitHub Desktop.
Save rioleo/1368000 to your computer and use it in GitHub Desktop.
oraldescription.py
# Last modified November 15, 2011
# Returns the oral description of a set of numbers
def oralDescription(string):
firstchar = string[0]
for i in range(0, len(string), 2):
print "There are", string[i], "of", string[i+1]
oralDescription("112111")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment