Help me in solving LB01E problem

My issue

Currect ans

Learning course: Problem solving in Python
Problem Link: Problem (Make Avg) - Solve sub-components in Problem solving in Python

@ashok56
this will be the correct rearrangement

if A%2 == 0 and C%2 == 0:
    print('Both A and C are even')
elif A%2 != 0 and C%2 != 0:
    print('Both A and C are odd')
else:
    print('A is odd and C is even or vice versa')