Facebook Pixelreturn Statement | Python Tutorial | CodeWithHarry

return Statement

The return statement is used to return the value of the expression back to the main function.

Example:

def name(fname, mname, lname):
    return "Hello, " + fname + " " + mname + " " + lname
 
print(name("James", "Buchanan", "Barnes"))

Output:

Hello, James Buchanan Barnes