6.4. (Part 1) Item Counter – Python


Video is ready, Click Here to View ×

Starting out with Python, Third Edition, Tony Gaddis
Chapter 6
Programming Challenges

4. Item Counter

Assume that a file containing a series of names (as strings) is named
names.txt and exists on the computer’s disk. Write a program that displays the number of names that are stored in the file. (Hint: Open the file and read every string stored in it. Use a variable to keep a count of the number of items that are read from the file.)

Starting out with Python. Third Edition. Tony…

2 thoughts on “6.4. (Part 1) Item Counter – Python

  1. I am going to make sure everyone in my class knows about your youtube videos !!!
    Everybody could use your help !!!! Thank you so much , you showed me hope. I thought of dropping out of college but now I have hopes that ill pass !!

Leave a Reply

Your email address will not be published. Required fields are marked *