An alternative equivalent functional syntax is also accepted:: Employee = NamedTuple('Employee', [('name', str), ('id', int)]) zIEither list of fields or keywords can be provided to NamedTuple, not bothİ