name 'k' is not defined
n = input("Введите свою дату рождения: ")
x = input("Введите дату рождения любимого(ой): ")
n = [int(digit) for digit in n]
x = [int(digit12) for digit12 in x]
suma = sum(n)
suma1 = sum(x)
while suma > 9:
digit = suma // 10
digit1 = suma % 10
summa = digit + digit1
if summa > 9:
digit333 = summa // 10
digit888 = summa % 10
summaa11 = digit333 + digit888
print("Сумма №1:", summaa11)
break
print("Сумма №1:", summa)
break
else:
print("Сумма №2:", suma)
while suma1 > 9:
digit3 = suma1 // 10
digit2 = suma1 % 10
summaa = digit2 + digit3
if summaa > 9:
digit33 = summaa // 10
digit88 = summaa % 10
summaa1 = digit33 + digit88
print("Сумма №3:", summaa1)
break
print("Сумма №3:", summaa)
break
else:
print("Сумма №4:", suma1)
if summa > 9 and summaa > 9:
xx = summaa11 + summaa1
while xx > 9:
nnn1 = xx // 10
n1nn = xx % 10
g = k = nnn1 + n1nn
print(g)
else:
print(xx)
elif suma > 9 and suma1 > 9:
c = nn = summa + summaa
while c > 9:
nn1 = c // 10
nn11 = c % 10
nnn = nn1 + nn11
print(nnn)
break
else:
print(c)
elif summa > 9 or summaa > 9:
ccc1 = summaa11 + summaa or summaa1 + summa
while ccc1 > 9:
f = ccc1 // 10
ff = ccc1 % 10
fff = f + ff
print(fff)
break
else:
print(ccc1)
elif suma > 9 or suma1 > 9:
cc = nc = summa + suma1 or suma + summaa
while cc > 9:
nn1 = cc // 10
nn11 = cc % 10
nnnn = nn1 + nn11
print(nnnn)
break
else:
print(cc)
else:
ccc = nnc = suma + suma1
while ccc > 9:
nn1 = ccc // 10
nn11 = ccc % 10
nnn = nn1 + nn11
print(nnn)
break
else:
print(ccc)
if k or xx <= 2:
print("Вы не совместимы", k or xx)
elif 2 < c or nnn <= 4:
print("френдзона", c or nnn)
elif 4 < ccc1 or fff <= 6:
print("Вы друзья", ccc1 or fff)
elif 6 < cc or nnnn <= 7:
print("Вы лучшие друзья", cc or nnnn)
else:
print("Вы совместимы", ccc or nnn)
помогите пожалуйста найти причину ошибки "name 'k' is not defined"