I'm working on a fun project with my friend and we're trying to figure out how to get a specific variable from a file using user input.
Example:
In pokemonList.py file
charmander = "fire"
squirtle = "water"
In main.py file
import pokemonList
pokemon = input("select a pokemon: ")
print(pokemonList.pokemon)
When I try that the program thinks I'm trying to get a variable called "pokemon" from the file. Is there any way to do this?