I am using python and would like to know if it would be possible to ask the user for the name of a variable and then create a variable with this name. For example:
my_name = input("Enter a variable name") #for example the user could input orange
#code to set the value of my_name as a variable, say set it to the integer 5
print(orange) #should print 5 if the user entered orange
I know it can be done using a dictionary but I would like to know whether this is possible without creating an additional object. I am using python 3. Thanks.