Why is ‘dir()’ named ‘dir’ in python? February 8, 2023 by Tarik IIRC I named it after the DIR command in DOS.