Lecture3|How to use if, else, elif in python |

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

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

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

    Useful and informative video by engineer rizwan

  • @muhammadrizwanmatloob3723
    @muhammadrizwanmatloob3723 2 месяца назад +1

    why using elif when we cam again use if in the code

    • @engineerrizwanmatlooboffic6126
      @engineerrizwanmatlooboffic6126  2 месяца назад +1

      Elif will be executed only if above condition of if goes false. Now when u will use if in place of elif, code under if condition will be executed even even above if condition goes true. There will be extra code execution always despite the fact we dont need