how do i create a dynamic list variable name in python code example
Example: 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'
for x in range(0, 9):
globals()['string%s' % x] = 'Hello'
# string0 = 'Hello', string1 = 'Hello' ... string8 = 'Hello'