A few things you could use:
dir()
will give you the list of in scope variables:globals()
will give you a dictionary of global variableslocals()
will give you a dictionary of local variables
More Related Contents:
- How to make python create variables, without the user creating the variables?
- Defined variable is not defined
- Check if input is empty
- Simpler way to create dictionary of separate variables?
- What is the naming convention in Python for variable and function names?
- Python list doesn’t reflect variable change
- How can you print a variable name in python? [duplicate]
- How to check if type of a variable is string?
- How would I access variables from one class to another?
- What is the difference between class and instance variables?
- python class instance variables and class variables
- How can I print variable and string on same line in Python?
- What’s the best way to return multiple values from a function? [duplicate]
- Underscore _ as variable name in Python [duplicate]
- Elegant way to check if a nested key exists in a dict?
- How to call function that takes an argument in a Django template?
- Two values from one input in python?
- Python Django Global Variables
- Changing variable names with Python for loops [duplicate]
- pyodbc – How to perform a select statement using a variable for a parameter
- Python – Why is this class variable not defined in the method?
- Python objects confusion: a=b, modify b and a changes! [duplicate]
- How do I import variable packages in Python like using variable variables ($$) in PHP?
- Access to value of variable with dynamic name
- Creating multiple variables [duplicate]
- Should I use instance or class attributes if there will only be one instance? [closed]
- Is it a good idea to dynamically create variables?
- Retrieving the list of references to an object in Python
- Copied variable changes the original?
- Correct Use Of Global Variables In Python 3