melamela0109 / python-practice

1 stars 0 forks source link

#1.7 Keyworded Arguments #8

Open melamela0109 opened 2 years ago

melamela0109 commented 2 years ago

def say_hello(name, age, are_from, fav_food): return f"Hello {name}, you are {age} years old you are from {are_from} your favorite food is {fav_food}"

result = say_hello("nicolas", "30", "colombia", "kimchi")

print (result)

argument가 많아지면, 순서를 실수할 수 있기 때문에 이 방법도 중요하다!