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!
На этой странице сайта вы можете посмотреть видео онлайн Python - Multiple Function Output and Unpacking - Code Example - Python Tutorial Videos APPFICIAL длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Appficial 01 Октябрь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,944 раз и оно понравилось 39 зрителям. Приятного просмотра!