Hi, I am a beginner comp sci teacher at an all-girls high school. The girls are learning how to read from a txt file and search for a string.
Here is a sample of text from the txt file: TX,F,1910,Mary,895 TX,F,1910,Ruby,314 TX,F,1910,Annie,277 TX,F,1910,Willie,260 TX,F,1910,Ruth,252 TX,F,1910,Gladys,240 TX,F,1910,Maria,223 TX,F,1910,Frances,197 TX,F,1910,Margaret,194 How do they read the number after a certain searched name and then add up the numbers after each time the name occurs? I would really like to help them with this code but I am at a loss. Thank you, Crystal _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor