For doing OR and AND operation in Python we use 'or' and 'and' keywords, What you have used is not valid in Python. To get rid of the error follow the below-mentioned way:-
if i == 5 and ii == 10:
print("i is 5 and ii is 10")
To know more about this you can have a look at the following video tutorial:-