Skip to content
Quiz · Functions · lesson 2 of 8

Quiz — keyword arguments

What does the program print?

Python
def price(amount, discount=0, tax=20):
    return amount - discount + tax


print(price(100, tax=0), price(100, 5))

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way