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 trialDebasis Nath
3,316 Pointsmade a list,but when i run it in IDLE of python
its showing the syntax error when i call the function show_help()
my_ilist=[]
def show_help():
print("""
enter OK to STOP adding name.
enter HELP to show help.
enter SHOW to show the current list.
""")
def show_list():
print("Here is your invitation list:")
for names in my_ilist:
print(names)
def new_item(add_item):
my_ilist.append(add_item)
print("add{}.then list has now{}.".format(add_item,len(my_list))
show_help()
while 5>3:
add_name=input("> ")
if add_name=="HELP":
show_help()
continue
elif add_name=="OK":
break
elif add_name=="SHOW":
continue
new_item(add_item)
show_list()
[MOD: added ```python formatting -cf]
2 Answers
Chris Freeman
Treehouse Moderator 68,441 PointsAfter adding formatting to your post, it seems there are many indentation errors. Can you fix those and repost your code?