New Sandbox Program
New Sandbox Program
def show_help():
print("\nCommands:")
print("add [item] - Pack an item")
print("list - Show packed items")
print("check - See what's missing")
print("done - Exit program")
print("help - Show this message")
# Checks to see if you already have the item, adds the item if not.
def add_item(item):
if item.lower() in [x.lower() for x in my_bag]:
print(f"Uh, you already packed {item}...")
else:
my_bag.append(item)
print(f"Added {item} to your bag")
if not missing:
print("LOOK AT YOU! You remembered everything for once!")
else:
print("\nALERT! You're missing:")
for item in missing:
print(f"- {item} (seriously don't forget this)")
def main():
print("=== My Clunky Packing Helper ===")
print("Type 'help' if you get confused (like I do)\n")
while True:
cmd = input("What now? ").strip().lower()
if cmd == 'done':
print("Good luck on your trip! Hope you packed pants...")
break
else:
print("Huh? Type 'help' if you're confused")
if __name__ == '__main__':
main()