Em học python trên trang DOCS của python.org. Em chưa hiểu đoạn sau, mn giải thích giúp em:
def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
print("-- This parrot wouldn't", action, end=' ')
print("if you put", voltage, "volts through it.")
print("-- Lovely plumage, the", type)
print("-- It's", state, "!")
Tại sao lại bị lỗi khi truyền giá trị cho đối số như sau:
parrot(110, voltage=220)