Help me to fix the erorr

My issue

i need a ans of problem

My code

# Example test cases
X = 30
if X % 3 == 0:
    print('Number of questions incorrectly solved is 0')
elif (X + 1) % 3 == 0:
    print('Number of questions incorrectly solved is 1')
else:
    print('Number of questions incorrectly solved is 2')

X = 34
if X % 3 == 0:
    print('Number of questions incorrectly solved is 0')
elif (X + 1) % 3 == 0:
    print('Number of questions incorrectly solved is 1')
else:
    print('Number of questions incorrectly solved is 2')

Learning course: Design and Analysis of Algorithms
Problem Link: Problem 3 (High Accuracy) - Solve sub-components in Design and Analysis of Algorithms

X = 3
Y = 4
Z = 12
if (Z%X == 0) and (Z%Y == 0):
print(‘Z is divisible by both X and Y’)
elif (Z%X == 0):
print(‘Z is divisible only by X’)
elif (Z%Y == 0):
print(‘Z is divisible only by Y’)
else:
print(‘Z is divisible by neither X nor Y’)

X = 3
Y = 5
Z = 13
if (Z%X== 0) and (Z%Y == 0):
print(‘Z is divisible by both X and Y’)
elif (Z%X == 0):
print(‘Z is divisible only by X’)
elif (Z%Y == 0):
print(‘Z is divisible only by Y’)
else:
print(‘Z is divisible by neither X nor Y’)