Created
July 4, 2016 06:11
-
-
Save jherrlin/07332de51ee04510c284c0d146ea86a0 to your computer and use it in GitHub Desktop.
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
def add(a, b): | |
return a + b | |
add('hej', 'san') # Ska funka eftersom det är strings. | |
add(1, 2) # Ska funka eftersom båda är ints. | |
add('hejsan', 1) # Python är hårt typat, så här får vi type error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment