Hi,
I think what you are looking for is the ipython prompt, and not the python prompt.
(ipython) thebox:~ nwani$ python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:14:23)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
(ipython) thebox:~ nwani$ ipython
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:14:23)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.3.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: %pwd
Out[1]: '/Users/nwani'
In [2]:
Do you really want to exit ([y]/n)? y