Python 3 globals() built-in function TUTORIAL

Python 3 globals() built-in function TUTORIAL

Brendan Metcalfe

4 года назад

4,419 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Garden of Akira
Garden of Akira - 21.07.2022 05:45

Thank you for the video. I am grateful for your time and contribution. Kind regards, Akira.

Ответить
Paul
Paul - 16.11.2020 15:22

Thank you!

Ответить
mio manns
mio manns - 03.07.2020 00:39

really useful when it comes to make you code dry
when you need to make a lot of if statements
you can just use this: globals()[f"var{i]"]
in a for i in range() loop

Ответить
Navin Motghare
Navin Motghare - 25.05.2020 14:59

Thank you Sir..

Ответить