Ch 45 default parameters
def user_info(first_name=None,last_name=None,age=None):
print(f"your first name is {first_name}")
print(f"your first name is {last_name}")
print(f"your first name is {age}")
user_info()
#if your not type anything the all defult valur is None and it show None in when user don't type anything
#i try to put input command on def but its not working
Comments
Post a Comment