4.3 β User Defined Function Type 2 (Return Statement) | Python Programming β New Series
Welcome to the Python Programming β Complete Course (New Series) by Burle Sharma. In this class (4.3), we continue the Functions chapter and discuss the second type of user defined function. π In this type: β Input is taken inside the function β Processing is done inside the function β Output is returned to the main program π The main function (caller) will display the output. This introduces an important concept: π Return statement In this video, I have: β Explained the second type of user defined function β Introduced the concept of return statement β Written the complete program β Explained how value is returned to main function β Performed dry run step-by-step β Executed the program and verified output π What Youβll Learn in This Video β’ Second type of user defined function β’ Use of return statement in Python β’ Difference between print and return β’ Flow of control between function and main program β’ Writing structured programs using functions β’ Performing detailed dry run π§ Concept Explanation π User Defined Function β Type 2 β Input β Inside Function β Process β Inside Function β Output β Returned to main function π Flow 1οΈβ£ Function takes input 2οΈβ£ Function processes data 3οΈβ£ Function returns result 4οΈβ£ Main function receives and prints result π§ Key Learning Point π Return vs Print β print() β Displays output directly β return β Sends value back to caller π This type is very important because: β It makes functions reusable β It separates logic and output β It is widely used in real-world programming π― Why This Video Is Important This lesson helps students: β’ Understand function flow clearly β’ Learn return mechanism β’ Write better structured programs β’ Build strong programming concepts π Return-based functions are used in almost all real applications. #Python #PythonProgrammingNewSeries #BurleSharma #FunctionsInPython#ReturnStatement#UserDefinedFunction #PythonBeginners#PythonConcepts#Geecoding #PythonClass43
Download
0 formatsNo download links available.