Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...

Code Snippet

def passname(str):
   print("This is a function that will pass a name into itself and then say hello:...")
   return ("hello there ") + str

def passnumbers(x,y):
   print("and this function, passes the parameters x and y into the function and adds them, like so....")
   return x+y

Try it yourself