Make a generator for odd numbers. Write a generator function odds(start) that can be used in a for..

Make a generator for odd numbers.

Write a generator function odds(start) that can be used in a
for loop for generating the infinite set of odd numbers starting with start:

for i in odds(start=7):

if i <>

print i

else:

break

The output here consists of the numbers 7, 9, 11, and so on
up to and including 999.