import os os.path.basename(__file__)
Here is what the above code is Doing:
1. Importing the os module.
2. Storing the name of the current file in a special __file__ variable.
3. Printing the value stored in __file__ by accessing the basename attribute of the os.path module.