Python ) 파이썬으로 주민번호 유효성검사
validNumber = [2,3,4,5,6,7,8,9,2,3,4,5] userNumber = []temp = []for i in range(len(validNumber)): temp.append(validNumber[i] * userNumber[i])print(temp)sum = 0for i in range(len(temp)): sum += temp[i]print(sum)namerge = sum % 11print(namerge)key = 11 - namergeif len(str(key)) == 2: key = key % 10 if key == userNumber[12]: print("OK") else: print("NO")else: if key ..