Python Functions for Beginners | Python tutorial

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

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

  • @ahmad-murery
    @ahmad-murery Год назад +6

    9:40 We get Zero here not because of the return 0 but because of the default values being applied,
    Instead we may pass some strings so the type check evaluate to true and return 0.
    Thanks Dave

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Год назад +5

      That is correct! Good to hear from you Ahmad! 💯🚀

    • @ahmad-murery
      @ahmad-murery Год назад +2

      @@DaveGrayTeachesCode Thank you my friend

  • @utinthein7274
    @utinthein7274 Год назад +2

    So, We have to study your tutorials on Monday and Friday.
    Anyway Thanks you very much indeed.
    I love you Sir.

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

      Thank you! I try to publish on Tuesdays and Fridays along with a short on Sundays.

  • @7doors847
    @7doors847 Год назад +2

    Oggi SpaGRAYtti alla PYTHONesca!! 🤗

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

    currently i am learning Machin learning in Python now i found you please make video abou it ❤❤🎉

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

    Thanks!

  • @mbr-crunch
    @mbr-crunch Год назад +1

    Why does the sum-function return num1 + num2 (if integers), although we did not use an "else:" before the "return num1 + num2"?

    • @redacted7956
      @redacted7956 23 дня назад

      im not too sure since im pretty new, but i think its because in
      1 def sum(num1=0, num2=0):
      2 if (type(num1) is not int or type(num2) is not int):
      3 return
      4 return num1 + num2
      in line 2 its saying or what im interpreting from it, is that if the input is not an integer value then it would return (line 3) nothing/ the default value but if it is an integer value then it would skip line 3 and go to line 4 which is add the first integer value to the second one

  • @ayojoy1443
    @ayojoy1443 11 месяцев назад

    very good and helpful

  • @aswanivmanoj8115
    @aswanivmanoj8115 11 месяцев назад

    Thank u sir

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

    I guess, if Data structure and algorithm in Java script is added on RUclips, it could be beneficial for viewers...

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

    what happen to todays Next tutorial?

  • @mohammadnabil6556
    @mohammadnabil6556 Год назад +2

    Please upload twice video a week

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

    Hi Dave. Today Friday , we are expecting next js . But today 🐍 😐