Free Python programming for beginners- Tutorial- Functions - Def() functions - Next level python
Subscribe Here -https://www.youtube.com/@KeeshtuTechn...
#pythonprogramming #pythontutorial #pythonforbeginners #youtubechannel #pythoninstallationcomplete #pythonhowtoinstall #pythoninstall #pythondownload #pythontutorialfree #pythonyoutube #pythonenglish #pythonenglish #pythonexecvseval #pythonexec()vseval() #pythonexec() #pythoneval() #youtubeviews #pythondef #pythondef() #pythonfunctions #pythonbreak #pythoncontinue #pythonpass #pythonzip #pythonunzip #pythonprintescapecharacter #pythonrepr() #pythonr
Please Captions on - Python in English, Python in Tamil, Python in Telugu, Python in Malayalam, Python in Chinese, Python in Japanese, Python in German, Python in Hindi, Python in French
------------------
welcome to technology platform so last class we have seen like the simple Dev functions how we can reusable and how we can use this functions we have seen it so today we are going to see some detail how we can use the function in detail by using some functionalities we can return so earlier we have seen it this kind of things you remember this we have print this welcome to Python Programming we have written it and then we have pass arguments course chapter and then if you call this python 10 it will print python 10. so this is what we have seen in the last session now we have to add numbers so add two numbers this is what our concept here today let's see f add numbers open bracket I can say like number one comma number two like this I just put it here and then colon and then add equal to number one plus number two like that I have written it here we are doing something like
instead of uh print something let's see first I have to run it now and what you can see based on that I will just go further but we have to add some more things here but as of now for your understanding
add numbers
you can say like 10.
10 [Music]
here you can see 20. it is printing now right this is you already knows this it will print but here I just given like uh print something but instead of that we have to return some value so we should not always like
use this kind of things why because it's like it should return it should return some so let me show you how we can do it let's see I'll write this
now whenever um I'll say like let me call like this check result equal to add numbers 10 10.
it is printing check vessels right now I want to do something here see this [Music] it is already print is available but I don't want to use a print instead of that I can say like written and then add so now you can see so you don't want to use print you have to use it written here we always use return because we have to we are not going to print it we just have to return some values because of that this is the keyword for the arguments are everything we have to use like this see this written add Now call this function
it is returning the values 20 and then you can just use this
so now you can see this it is not printing now I'll say like print off check result then it is printing here because I didn't use print functionality so because of that it is using like this so here what here itself you can see you will get it but the right way is that we have to use this return app because we are going to return something so because of that I just used like this but how we can go in depth we can see it now
now let's see I want to multiply some number right so
multiply numbers I'll say like number one colon and then here see this return
number one ostrich number one like this I written that's it okay over now you can call this
10 10 into 10 it is printing 100 I never given like this written a print or something like that but it is printing so this is what this kind of functionality we used it here now let's see this I am going to use it for function see first statement for I in range of five times I am going to Loop it now here I will call function this function call function equal to multiply this number I'm not going to pass it instead of that I can say like I right now
I'm going to print this call function
now let's see this so the multiply number is like first 0 0 into 0 0 and then the second number is 1 it is passing like 1 into 1 so 1 after that it is 2 so 2 into 2 4 3 into 3 9 and 4 into 4 16. so like that we are able to use it wherever we have to use as a reusable we can use it so this kind of things we are going to see in detail in the future classes but as of now you are just able to understand what uh we have written here at like but another example also we have seen it here let me check this def um like print I'll say like um
this is even [Music] one two three this is r so like this you can use this kind of reusable or user defined functions and make it a more efficient way you can use it see you in the next class bye thank you
На этой странице сайта вы можете посмотреть видео онлайн Python tutorial - Python functions DEF - How to use Def() functions in python длительностью online в хорошем качестве, которое загрузил пользователь KeeshtuTechnology 14 Август 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 22 раз и оно понравилось 1 зрителям. Приятного просмотра!