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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top