Having troubles with list methods

A

Adam Sweiger

The code: pastebin.com/MyrLB704

I'm working on this program in my Python book, and for some reason it doesn't seem to be working.

I've read my code, it seems fine to me. Here's what the book says:

The High Scores program uses list methods to create and maintain a list of the user's best scores for a computer game. The program uses a simple, menu-driven interface. The user has a few choices. He or she can add a new score, delete a score, sort the scores, or quit the program.

When I run my code, it just keeps printing the same thing infinitely.

Any help?
 
S

Sam Whitehead

Your indentation is such that the first print statement is the only thing inside the while loop.
 
A

Adam Sweiger

Your indentation is such that the first print statement is the only thing inside the while loop.

I corrected the indentation and it works perfectly now. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top