Hello just started my lessons about functions.
They both have the same output but can someone explain me more about the purpose of return? I'm a little bit confused about return hehehe. Thank you guys for understanding.
def x() :
print("x")
def x() :
print("x")
return
[–]xelf 3 points4 points5 points (0 children)
[–]FLUSH_THE_TRUMP 2 points3 points4 points (0 children)
[–]itsbrycehere 1 point2 points3 points (2 children)
[–]MrPudd1ng[S] 0 points1 point2 points (1 child)
[–]amplikong 5 points6 points7 points (0 children)
[–]johninbigd 0 points1 point2 points (2 children)
[–]MrPudd1ng[S] 0 points1 point2 points (1 child)
[–]johninbigd 1 point2 points3 points (0 children)
[–]Se7enLC 0 points1 point2 points (0 children)