So I'm writing a very simple saving system for my game, and it keeps saving the file name as simply the variable name (before the addition of the ":MinecraftText-turePack.txt"). I ran a print through it (after the name change), and the variable was changed, but it still gave me the wrong file name. Any thoughts? Thanks.
if response == "save_pack":
print("What do you want to call it?")
name = input()
name = name + ":MinecraftText-turePack.txt"
pack = open(name, "w")
for each in inventory:
name, amount, recipe = each
pack.write(name)
pack.close()
Edit: Possibly another important detail; it is creating a file, just with the wrong name