If you’re looking for something really simple, this could serve as an example:
area = 0
inventory = []
area_scavenged = False
while True:
print 'Area: %s\nInventory: %s' % (area, str(inventory))
choice = raw_input("Choose an option: ")
if choice == 'rest':
pass
elif choice == 'continue':
area_scavenged = False
area += 1
elif choice == 'scavenge':
if not area_scavenged:
# Append to inventory the item that corresponds to the area you're in
inventory.append('whatever')
area_scavenged = True
else:
print("You couldn't find anything")
elif choice == 'end':
break
solved How do I do this? (Can’t think of an accurate title) (PYTHON) [closed]