Created
November 15, 2011 19:08
-
-
Save rioleo/1368000 to your computer and use it in GitHub Desktop.
oraldescription.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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