Write a python program using structured paradigms concepts to compute the sum of the two given integers. If the two values are same, then returns triple their sum

def sum_two(x, y):

if x != y :
    x=input("Enter the first number")
    y=input("Enter the second number")
    

    sum = (x+y)
print('The sum is: + sum')

else:
sum = (sum)*3
print(‘The sum is: + sum’)

print(‘This statement is always executed’)
return sum

(How do I correct this code)

hi @saumyad13_e4b8357f255532c4 are u enrolled in cpp or python course?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.