Re: How Do I Change My Timezone?

Home 2019 Forums Account Settings How Do I Change My Timezone? Re: How Do I Change My Timezone?

February 16, 2017 at 10:13 am admin_lifexite

Use eval :

userInput = 'hi'
hList = [2, 5, 3]
iList = [6, 6, 2]
userInputLen = len(userInput)
for i in range (0, userInputLen):
    for objects in eval(userInput[i] + 'List'):
        print(objects)

Without eval,userInput[i] + ‘List’ is a string;with eval,it points to a variable called hList or iList.