Skip to content

Instantly share code, notes, and snippets.

@slingam00
Last active May 21, 2020 09:08
Show Gist options
  • Save slingam00/65dd9bd859fefd08081fad3fbc176651 to your computer and use it in GitHub Desktop.
Save slingam00/65dd9bd859fefd08081fad3fbc176651 to your computer and use it in GitHub Desktop.
def hello():
return("Hello")
print(hello()) # printing the call of the function which returns "Hello"
def name(firstName, lastName):
return("Hello, my name is " + firstName + " " + lastName)
print(name("John", "Doe")) # name function gets called
# firstName getting passed in is 'John'
# lastName getting passed in is 'Doe'
# The result is the String: Hello, my name is John Doe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment