Help me in solving LB01A problem

My issue

My code

# Step 1: Read and understand the problem statement and sample test cases

# Click on 'Next' once you are ready to proceed.
A=int(input())
C=int(input())


Learning course: Python for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

The logic would if both is odd or both is even and answer would be (A+C)/2 and else case it would be -1.

1 Like