"Write a program to generate all and only three-digit number from 000 to 999 the sum of whose digits is odd. So, for example, your program won’t print 000 or 246, but it would print 001 and 342."
Example: algorithms for Determine the sum of al digits of n
def sum_of_digits(n):
sum = 0
while (n != 0):
sum = sum + int(n % 10)
n = int(n/10)
return sum