Back to Browse

4.3 – User Defined Function Type 2 (Return Statement) | Python Programming – New Series

16 views
Apr 16, 2026
8:22

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 formats

No download links available.

4.3 – User Defined Function Type 2 (Return Statement) | Python Programming – New Series | NatokHD