Is there a way to create a global variable from a string? I know that you can make a variable from a string like so:
string = \'hello\' val = 10
You can use the globals() function:
globals()
name = "hello" globals()[name] = 10