Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.14.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: def xyz():
...: return globals()[import('inspect').stack()[0][3][6]]
...:
In [2]: xyz()
IndexError Traceback (most recent call last)
in
----> 1 xyz()
in xyz()
1 def xyz():
----> 2 return globals()[import('inspect').stack()[0][3][6]]
3
IndexError: string index out of range
In [3]: