Keyword-Only Parameters After a Bare Star
def resize(image, *, width, height):
return f"{width}x{height}"
print(resize("photo.png", 800, 600))
What happens when this code runs?
Sign in to answer questions and track your progress
Sign Indef resize(image, *, width, height):
return f"{width}x{height}"
print(resize("photo.png", 800, 600))
What happens when this code runs?
Sign in to answer questions and track your progress
Sign In