if need to update tuple, get it as list.
foods = ('pizza', 'burger', 'taco', 'meat ball', 'burrito')
print("foods to offer:")
for food in foods:
print("\nbuffet decide to offer steak instead of meat ball!")
tmp = list(foods)
tmp[tmp.index("meat ball")] = "steak"
foods = tuple(tmp)
Share this highlighthttp://www.safaribooksonline.com/a/python-crash-course/10685473/