How can count python files in given directory?

def count_py_files_in_repos(dirname):
   # if os.path.exists(os.path.join(dirname, '.git')):
   if os.path.exists(os.path.join(dirname)):
      count = 0
     for root, dirs, files in os.walk(dirname):
        count += len([f for f in files if f.endswith('.py')])
     print(f"{dirname} has {count} python files.")

    for name in os.listdir(dirname):
       path = os.path.join(dirname, name)
       if os.path.isdir(path):

View More...

Samsung Notes APK

On August 24, 2014, Koum announced on his Twitter account that WhatsApp had over 600 million active users worldwide. In October 2020, Facebook announced the introduction of pricing tiers for services offered via the WhatsApp Business API, charged on a per-message basis. The government of Uganda banned WhatsApp and Facebook, along with other social media platforms, to enforce a tax on the use of social media. WhatsApp Messenger for android View More...

First Previous 1 2 3 4 Next Last