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
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
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
That is correct! Good to hear from you Ahmad! 💯🚀
@@DaveGrayTeachesCode Thank you my friend
So, We have to study your tutorials on Monday and Friday.
Anyway Thanks you very much indeed.
I love you Sir.
Thank you! I try to publish on Tuesdays and Fridays along with a short on Sundays.
Oggi SpaGRAYtti alla PYTHONesca!! 🤗
currently i am learning Machin learning in Python now i found you please make video abou it ❤❤🎉
After I complete this beginners series.
Thanks!
Welcome!
Why does the sum-function return num1 + num2 (if integers), although we did not use an "else:" before the "return num1 + num2"?
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
very good and helpful
Thank u sir
I guess, if Data structure and algorithm in Java script is added on RUclips, it could be beneficial for viewers...
Yes, it could. 😃
what happen to todays Next tutorial?
Read my RUclips community post on my channel.
Please upload twice video a week
I do every Tuesday and Friday as well as a short on Sundays.
Hi Dave. Today Friday , we are expecting next js . But today 🐍 😐
Right. See my community post on my channel.