Shorten Your Code Significantly in Python With The Walrus Operator

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

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

  • @kingoreo7050
    @kingoreo7050 2 года назад +8

    Returning the result of the assignment is probably better wording that “displaying it”.

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

      Thank you for the grammar lesson!

    • @yoyme_blumenfeld
      @yoyme_blumenfeld Год назад +1

      @@Indentlyit is not grammar lesson, but semantics lesson

  • @movax20h
    @movax20h 2 года назад +5

    It is a great feature, which was missing in Python. Most common use case for me is when using regular expressions. Unfortunately in majority of production machines I am still limited to Python 3.6 for now.

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

    Its not that it assigns and DISPLAYS it is that it assigns or creates the variable and afterwards evaluates the expression its in,in this case is evaluated as the value of the key value pair.

  • @abc_cba
    @abc_cba 8 месяцев назад

    I want to learn Python, there are many playlists in your channel, how do I begin sequentially?
    Thanks.

  • @higiniofuentes2551
    @higiniofuentes2551 2 года назад

    Thank you for this very useful video!

  • @bodeokunfolami9501
    @bodeokunfolami9501 2 года назад

    This is awesome!

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

    thanks!

  • @higiniofuentes2551
    @higiniofuentes2551 2 года назад

    The only problem I see is when you will try to debug/modificate!

  • @der.einzig.wahre.jemand
    @der.einzig.wahre.jemand 7 месяцев назад

    looks a little sus

  • @tyronschannel
    @tyronschannel 2 года назад +2

    Second

  • @pxnx
    @pxnx 2 года назад +2

    first :3

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

    Great vid :)