Starting out with Python, Third Edition, Tony Gaddis
Chapter 6
Programming Challenges
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 Gaddis.
Happy Steeming Everyone! :)
Hello Kay. Shilpa here
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hello Shilpa, wow it's so great to see you here. I'm very happy about it 😊 Take care and happy Steeming.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit