Return Statement | EP-51 Return Statement in Python Function | Free Python Tutorials For Beginners
Return Function
"""
The return statement in Python is used to terminate the execution of a function and send a value back to the caller.It can be used to return any type of value, including integers, floats, strings, lists, tuples, dictionaries, or even other functions.
If a function doesn't have a return statement, it implicitly returns None.
.
The syntax for the return statement is:
return expression """
def fun1(a,b):
sum = a+b
print(sum)
fun1(5,4)
def fun1(a, b):
sum = a + b
return sum
output = fun1(5, 4)
print(output)
#PythonForBeginners #PythonTutorial #LearnPython #PythonFunctions #CodingForBeginners #ProgrammingBasics #PythonProgramming #PythonTips #ReturnStatement #PythonFunction #CodingTutorial #FreeCourse #BeginnerFriendly #ProgrammingTips #Python
Connect With Us:
—————————————
➡ ️ Websitehttps://www.cybrosys.com/m/
➡ ️ Email: info@cybrosys.com
➡ ️ Twihttps://twitter.com/cybrosysosys
➡ ️ Lihttps://www.linkedin.com/company/cybrosys/brosys
➡ ️ https://www.facebook.com/cybrosystechnologiesnologies
➡ ️ https://www.instagram.com/cybrosystech/brosystech
➡ https://pinterest.com/cybrosys/ / cybrosys