#15 - Namedtuple in Python

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2024

Комментарии • 9

  • @mbdchronicle2988
    @mbdchronicle2988 4 года назад +2

    Mast video... Seraching for... This kind of explanation... Thanks

  • @harishraam6674
    @harishraam6674 9 месяцев назад

    Thanks a lot Sir.

  • @gedtoon6451
    @gedtoon6451 Год назад

    The typing.NamedTuple has much better syntax and supports typing.

  • @pingpangqiu5605
    @pingpangqiu5605 3 года назад

    Why do you need ‘Date’ when defining a namedtuple? Seems like you never need to call it.

    • @TechVitals
      @TechVitals  3 года назад +2

      We need two arguments for namedtuple; first one is the 'field_name' and the second one is the 'keys'. Here 'Date' is the field_name so when you print the namedtuple you will see Date as the field name for those key-values.

  • @mbdchronicle2988
    @mbdchronicle2988 4 года назад

    Upload FULL COURSE