Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Shopping List App Shopping List Introduction

Umair iqbal
Umair iqbal
910 Points

My reminders app is working but when I EXIT the app it shows me the keyword it self

What's wrong

Umair iqbal
Umair iqbal
910 Points

We need to make a list to hold on to our stuff

Reminder_list = []

we need to print instructions

print("What should I remind you of?") print( "Enter 'EXIT' to exit the list.")

we need to ask for new items

while True: new_item = input("> ") #We need to be able to quit the app if new_item == "EXIT": break #We need to be able to add new items to the list Reminder_list .append(new_item)

#We need to print the list print(" I will remind you of the following:") for items in Reminder_list: print(items)

2 Answers

Ari Misha
Ari Misha
19,323 Points

Hiya Umair! Maybe you're not capturing the "input" and controlling the flow of inputs using "if" loop. Maybe not. But you should definitely paste your code here so that we can be more helpful. (:

James Correnti
James Correnti
731 Points

Can you post your code in a more readable format? It is hard to trouble shoot without seeing it. You can use markdown to make your code more readable (Markdown cheetsheet), I wrote up what I think you were trying to accomplish like this:

reminders = []

print("What do you want to be reminded of? \nType 'EXIT' to quit")

while True:
    inputs = input("> ")
    if inputs == 'EXIT':
        break
    else:
        reminders.append(inputs)

for item in reminders:
    print(item)