For example if my text file is:
blue green yellow black
Here there are four lines and now I want to get the result as four. How can I do th
One liner:
total_line_count = sum(1 for line in open("filename.txt")) print(total_line_count)