Python: Invalid Literal for Int() Base 10
问题 I'm writing code for a project to determine the validity of credit cards and i've hit a wall, it seems like all of the things i have tried so far are not working. This is giving me an error for the sumofodds function where j=int(card[i]) The error is "Invalid Literal for Int() with Base 10 Is there anyone that can give me some advce? def sumofdoubles(): card=input() x=len(card) summ=0 for i in range(x-2,-1,-2): j=int(card[i]) u=j+j if u>9: h=u/2 summ=summ+h return(summ) def sumofevens(): card