Return Multiple Values From A Function | Python Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Excellent. I've always been looking for this feature in different languages. Finally found it it Python. Thank you for the video

RustysAdventures
Автор

I use this with second value being a result status. In example second is an enum, which will tell me if function output is a success or failure, so I can test that. This approach is inspired by Rust to avoid try blocks.

thingsiplay
Автор

This is very clever can we do the same in c++ ?

Avionics