TypeError: decoding str is not supported
Im trying to make a attribute characteristic randomiser for my nephews board game and I'm trying to write the attributes to an external file so that he can use them later. when i am trying to write to the file it comes up with the error speedE = str('Speed -', str(speed)) TypeError: decoding str is not supported my code is adding the calculated attribute to the name of the attribute. I.E. ('Strength - ', strengthE) my code is ... import random char1 = open('Character1.txt', 'w') strength = 10 strength += int(random.randint(1, 12) / random.randint(1,4)) speed = 10 speed += int(random.randint(1,