Python keyword arguments

10 Views
Published
python keyword arguments tutorial example explained

#python #keyword #arguments

# keyword arguments = arguments preceded by an identifier when we pass # them to a function
# The order of the arguments doesn't matter, unlike # positional arguments
# Python knows the names of the arguments that # a function receives

def hello(first,middle,last):
print("Hello "+first+" "+middle+" "+last)


hello(last="Code",middle="Dude",first="Bro")

––––––––––––––––––––––––––––––
Up In My Jam (All Of A Sudden) by - Kubbi https://soundcloud.com/kubbi
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
Free Download / Stream: http://bit.ly/2JnDfCE
Music promoted by Audio Library https://youtu.be/tDexBj46oNI
––––––––––––––––––––––––––––––
Category
Bro Code
Tags
python keyword arguments, keyword arguments python, python
Be the first to comment