Ricardo S.

asked • 03/26/20

Python Programming - Chapter 6.10 - Golf Scores

The Springfork Amateur Golf Club has a tournament every weekend. The club

president has asked you to write a program that will read each player's name

and score as keyboard input, and then save these as records in a file named

golf.txt.


First, have the program ask the user how many players they want to add to their

record. Then, ask the user for each name and score individually.


golf.txt should be structured so that there is a line with the player's name,

folowed by their score on the next line.


Emily

30

Mike

20

Jonathan

23

2 Answers By Expert Tutors

By:

Dave P. answered • 03/31/20

Tutor
5.0 (58)

Get your bearings in Python with approachable Stanford CS alumni

Nathan N. answered • 03/27/20

Tutor
5 (18)

B.S. in Computer Science, Fluent in Python

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.