Last active
August 29, 2015 14:04
-
-
Save bark/39704c38cca96aade9a0 to your computer and use it in GitHub Desktop.
pyhton exempel
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
def square(n) | |
squareNum = n**2 | |
print "in method %d " % (squareNum) | |
return squareNum | |
print "square %d " % (square(2)) | |
VS | |
def square(n) | |
squareNum = n**2 | |
print "in method %d " % (squareNum) | |
#return squareNum | |
print "square cant be printed here" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment