Quick actions

cmd+k|ctrl+k

Navigation

Languages

Functions assignment

Snippet info

Language

Python

Visibility

public

Author

hospino11

Created

2026-04-11T03:58:24.372066Z

Updated

2026-04-11T03:58:59.110564Z

"""
- Create a function that takes in 3 parameters(firstname, lastname, age) and

returns a dictionary based on those values
"""

def createUser(firstname, lastname, age):
    return {
        "firstName": firstname,
        "lastName": lastname,
        "age": age
    }
    
print(createUser("Hansel", "Ospino", 36))
INFO