I attempted problem #1523 (Count Odd Numbers in an Interval Range) and entered my code correctly. However, I receive an error that the global name 'Solution' is not defined. I would like to know why that is happening.
My code is posted below:
'''def countOdds(low, high):
count = 0
if 0 <= low <= high <= 10**9:
for x in range(low, high+1):
if x%2 == 1:
count += 1
return(count)'''