from os import getcwd, walk

extension = '.py'

count = 0
for root, directories, filenames in walk(getcwd()):
    for filename in filenames:
        if filename.endswith(extension):
            count += 1
print(f"{count} PY file found")

e1edb7a22440e13d8d16954c6179523ebc4198c2
<mask token>

<mask token>
for root, directories, filenames in walk(getcwd()):
    for filename in filenames:
        if filename.endswith(extension):
            count += 1
print(f'{count} PY file found')

<mask token>
extension = '.py'
count = 0
for root, directories, filenames in walk(getcwd()):
    for filename in filenames:
        if filename.endswith(extension):
            count += 1
print(f'{count} PY file found')

from os import getcwd, walk
extension = '.py'
count = 0
for root, directories, filenames in walk(getcwd()):
    for filename in filenames:
        if filename.endswith(extension):
            count += 1
print(f'{count} PY file found')

from os import getcwd, walk

extension = '.py'

count = 0
for root, directories, filenames in walk(getcwd()):
    for filename in filenames:
        if filename.endswith(extension):
            count += 1
print(f"{count} PY file found")
