I'm working on a python program where it asks the user for input and then creates a variable with the same name as the user output, like this: Input: Hello And then it creates a new variable called Hello. But if you print goodbye, it should create a new variable called goodbye. I tried googling it, but this question is very specific so I can't figure out how to google it well.I started my program like this:
import cs50
input = get_string("Input: )
Then it's supposed to take the input and create a variable with the name [input]. Is there a way I can do this? If you know a way, please tell me. Thanks a lot :)