Skip to content
Advertisement

Count lines of code in directory using Python

I have a project whose lines of code I want to count. Is it possible to count all the lines of code in the file directory containing the project by using Python?

Advertisement

Answer

JavaScript

To count all the lines of code in the files in a directory, call the “countIn” function, passing the directory as a parameter.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement