python-distilled icon indicating copy to clipboard operation
python-distilled copied to clipboard

5.4.3 - Keyword Arguments

Open mchion opened this issue 2 years ago • 0 comments

For 5.4.3 (on page 103), the following should be corrected:

original

func('hello', 3, z=[1, 2], y=22)
func(3, 22, w='hello', z=[1, 2])  # TypeError. Multiple values for x 

corrected

func(3, 22, w='hello', z=[1, 2]) 
func('hello', 3, z=[1, 2], y=22) # TypeError. Multiple values for y

mchion avatar Mar 27 '23 16:03 mchion