Skip to content

Instantly share code, notes, and snippets.

@jherrlin
Created July 4, 2016 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jherrlin/07332de51ee04510c284c0d146ea86a0 to your computer and use it in GitHub Desktop.
Save jherrlin/07332de51ee04510c284c0d146ea86a0 to your computer and use it in GitHub Desktop.
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