I was wondering if you knew how to run a python file to only display the file description. For example I have these lines on the top of my python program.
"""
===================================================
test.py
sphchow
Description
====================================================
"""
I want to be able to run it so it displays this. But also have the ability to run the program normally. I tried searching around and could only find information like __docstring__ I think I'm not using the right key words?
__docstring__is the name of the lines at the top of the program.