# Equalize your varaible name to dict() VariableName =dict() # split as follow print(f'{VariableName=}'.split('=')[0])