-
-
Save notthetup/7228322 to your computer and use it in GitHub Desktop.
Fixed indentation for return.
This file contains hidden or 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
numbers= [] | |
def loopy(i): | |
while i<6: | |
print "at the top of i is %d" %i | |
numbers.append(i) | |
i = i+1 | |
print "Numbers now", numbers | |
print "at the bottom of i is %d" %i | |
return numbers | |
nu= raw_input(">") | |
numb= loopy(nu) | |
print "The numbers", numb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment