79423818

Date: 2025-02-08 19:49:38
Score: 2
Natty:
Report link

input function takes everything as a string. So convert the input taken into int while doing addition.

Change the lines to this code:

num2 = int(num1[2]) + int(num1[1]) + int(num1[0])

and

newNum2 = int(newNum1[2]) + int(newNum1[1]) + int(newNum1[0])

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: safiuddin shaik