lists = {
"list1": ["one","Two","three"],
"list2": ["1","2","3"],
}
while True:
choice = raw_input("enter the list name: ")
try:
for item in lists[choice]:
print item
except KeyError:
print "I never heard of any list named '{}'! Try again.".format(choice)
else:
break