Programmatically assign values to a "string" variable in Python : The globals() Method

Опубликовано: 03 Ноябрь 2024
на канале: Shck Tchamna (Ca᷅mnà')
287
2

What is globals() Method?

The globals() method returns a dictionary with all the global variables and symbols for the current program.

It can be used to assign a value to a "string"
It can be used to programmatically assign values to a "string" variable

Music: Girasol Royalty Free Music from YouTube Studio