A python function can return multiple values as either a tuple or list.
def some_function():
code
return (x, y)
Unpacking – does multiple assignments at once.
a, b = some_function()
Subscribe to Appficial for more programming videos coming soon. Also, don't forget to click LIKE and comment on the video if it helped you out!
On this page of the site you can watch the video online Python - Multiple Function Output and Unpacking - Code Example - Python Tutorial Videos APPFICIAL with a duration of hours minute second in good quality, which was uploaded by the user Appficial 01 October 2021, share the link with friends and acquaintances, this video has already been watched 5,944 times on youtube and it was liked by 39 viewers. Enjoy your viewing!