Write a program that uses a while loop to store goals and assists for Lightning players in a text file. The program should prompt the user for player names, goals, and assists as shown below. Enter data for at least five players. You can make up the names and data. Each datum should be stored on its own line in the file. Sample Output
Write a
Sample Output
Note: Since no programming language is mentioned. I am attempting this in python. if you need it in any other language please repost the question and mention the language.
Required:
Write a program that uses a while loop to store goals and assists for Lightning players in a text file. The program should prompt the user for player names, goals, and assists as shown below. Enter data for at least five players. You can make up the names and data. Each datum should be stored on its own line in the file.
Step by step
Solved in 2 steps with 3 images