Boolean17. Given a positive integer. Check the truth of the statement: "This number is an odd three-digit number."

Solution in Python 3:

import random
A = random.randrange(1,200)
print("A = ", A)
a = (A%2 == 1)
b = (A>=100 and A<=999)
x = (a and b)
print("A is odd number: ", a)
print("A is three-digit number: ", b)
print("This number is an odd three-digit number: ", x)