im trying to decrypt these 3 lines:
148AFAD1_1A7E4E98D94D48_317F9E76
72A9728_173A818E19F959_2EAD0A5A
F9786C0_10F071C4029F42_D0A8855
and the result for every line should be 217540394. I tried using basic math but i dont get the result that i want, this is my code:
def decode_line(line):
parts = line.split('_')
total = 0
for part in parts:
num = int(part, 16)
print(f"Parte: {part}, Decimal: {num}, Total parcial: {total}")
return total
line1 = "148AFAD1_1A7E4E98D94D48_317F9E76"
line2 = "72A9728_173A818E19F959_2EAD0A5A"
line3 = "F9786C0_10F071C4029F42_D0A8855"
total = decode_line(line1) + decode_line(line2) + decode_line(line3)
print(f"Total final: {total}")
this code gives the sum of every line, but i dont want that, i want the result (217540394)
pls help