So, I need to write a script that lets the program look into each folder, into the .txt file, read a number, and store it into its memory. Also, I need it to loop so the script can run and look at multiple directories so it can find the number in the files. That way, with the numbers, I can make a bar graph.
What I have tried:
I tried directory = os.fsencode(my_directory_that_info_is_in)
for file in os.listdir()
#That's all I can do for now