2 Upvotes

Assigning Function Parameters by Name in Python

Python
General Python

def print_score(name,age,score):
    print(name,'is',age,'and has score of',score)
print_score(name='Alex Taylor', score=133, age=24)

By GregHe1979 - Last Updated Sept. 8, 2021, 2:47 p.m.

Did you find this snippet useful?

Sign up to bookmark this in your snippet library

COMMENTS
RELATED SNIPPETS
Python For Else Loop
Python
General Python

Loop

2
Top Contributors
103
100