can i give dynamic names to variables in python code example
Example 1: how to create dynamic variable names in python
for x in range(0, 9):
globals()['string%s' % x] = 'Hello'
# string0 = 'Hello', string1 = 'Hello' ... string8 = 'Hello'
Example 2: python dynamic variable name
name = "a"
value = True
a_dictionary = {name: value}
print(a_dictionary["a"])