Currently I'm testing something in python and trying to figure out if I can change a value in another file. Currently I have this written down :
from items import items
def changingitemamount(name, value):
print(items[name][6])
items[name][6] = items[name][6] + int(value)
print(items[name][6])
def changingitemamounttext():
name = input("What do you want to change?")
value = input("How much do you want to add?")
changingitemamount(name,value)
But whenever I run it and go to add the value i get this error.
items[name][6] = items[name][6] + int(value)
TypeError: 'tuple' object does not support item assignment