I'm reading from a text file in binary using python pickle, and it reads a number but this number is read as a string, and I want to use it to multiply, can I convert the str to an int value?
saveln = input("Please enter score card: ")
try:
open_file = open(saveln + '.txt', 'rb')
load_file = pickle.load(open_file)
print(load_file['name']+" score card: ""\n")
print("score: "+load_file['score']+"\n")
open_file.close()
except:
print("\n score card does not exist!!")
so how would I convert the 'score' into an Integra value?