032-002. keyword argument
@ def personal_info(name, age, address): print('Name: ', name) print('Age: ', age) print('Address: ', address) personal_info('Maria', 20, 'US, OHIO') # Name: Maria # Age: 20 # Address: US, OHIO # Like above, you should remember order of arguments and use of arguments everytime you use method # To resolve this issue, Python provies keyword argument # Keyword argument literally is functionality to attach name on each argument # You use keyword argument in the form of "keyword = value" personal_info(name='Maria', age=20, address='US, OHIO') # Name: Maria # Age: 20 # Address: US, OHIO # Keyword argument has 2 benefits # You can see use of each argument # You don't need to follow order of arguments personal_info(age=20, address='US, OHIO', name='Maria') # Name: Maria # Age: 20 # Address: US, OHIO @ # sep and end are also keyword argument in print() print(10, 20, 30, sep=':', end='')