I am learning python from your playlist and I must say your teaching is very nice please make video on tkinter module plss it is in my syllabus and you explain very clearly
Hi could anyone help me to get understand below problem def add(*things): sum1=0 for i in things: sum1=sum1+i print(sum1) ##################### 2 places we gave print. in the output we got None . why ???? print(add(1,2)) print(add(4,5,6))
You have to give the return value at the end of the function code, You got the none value because you didn't add the return value at the end of the function.
Good understanding
Thank you
I am learning python from your playlist and I must say your teaching is very nice please make video on tkinter module plss it is in my syllabus and you explain very clearly
@@learndeenkz-ph1fb thanks and please do share
Hi could anyone help me to get understand below problem
def add(*things):
sum1=0
for i in things:
sum1=sum1+i
print(sum1) ##################### 2 places we gave print. in the output we got None . why ????
print(add(1,2))
print(add(4,5,6))
You have to give the return value at the end of the function code,
You got the none value because you didn't add the return value at the end of the function.
Follow my functional programming tutorial and you will get the answer
Thank you.