def load():
with open("random_number_highscores.txt","r") as x:
print ("HIGHSCORES")
print ("Least guesses made.")
print (json.load(x))
time.sleep(1)
def save(a):
with open("random_number_highscores.txt", "a") as x:
json.dump(a, x)
print ("saved.")
time.sleep(1)
Why does def load not work. Ive tried saving with json.dump(str(a), x) but it doesnt work either just get error