print("""Hi, and welcome to \"GENERATE A CHECK DIGIT \" """)
num1 =input("Enter a 12 digit ISBN number and I will output your check digit: ")
oddTotal=int(num1[0])+int(num1[2])+int(num1[4])+int(num1[6])+int(num1[8])+int(num1[10])
evenTotal=int(num1[1])+int(num1[3])+int(num1[5])+int(num1[7])+int(num1[9])+int(num1[11])
Total=oddTotal+(evenTotal*3)
checkDigit=10-(Total%10)
print("For the given ISBN: " + str(num1)+ " The Check digit should be: " + str(checkDigit))
print("Complete ISBN 13 CODE = " +str(num1)+str(checkDigit))
My question: I have added "int" before every single list item but found this to be a bit tedious. I tried putting it at the beginning before the main bracket but it didn't work.
Is there a way of improving this code.