This is an Assignment I have to do, I did everything but just don't know how to loop it. The part where it says "You need to pick a number from 1-3" I want it to loop even if the user entered a wrong key. Because right now, if the user enters a option that is not a choice, it will exit the whole program.
house= ["computer", "laptop", "tv", "nintendo DS", "table", "Empty"]
print "items in my house are:"
print house
print "Pick an item to fill in the empty space: \n1 - Lamp\n2 - bed\n3 - NDS\n\n"
choice=raw_input("Type a number and press enter: ")
print
if choice =="1":
house[5] = "lamp"
print "Items in my house are now:"
print house
elif choice =="2":
house[5] = "bed"
print "Items in my house are now:"
print house
elif choice =="3":
house[5] = "NDS"
print "Items in my house are now: "
print house
else:
print "\nYou need to pick a number from 1-3"
raw_input("\n\nPress the enter key to exit.")