# listdir_endswith.py
import os
folderContents = os.listdir('.')
for z in folderContents:
if z.endswith('.py'):
print(z)
input('')
##
'''
listdir.py
listdir_endswith.py
'''
# Dedicated to God the Father
# All Rights Reserved Christopher Andrew Topalian Copyright 2000-2024
# https://github.com/ChristopherTopalian
# https://github.com/ChristopherAndrewTopalian
# https://sites.google.com/view/CollegeOfScripting