我将如何将下面的程序更改为产生相同结果的生成器表达式?
print 'this program creates a list of odd numbers in the range of your choice'
start_num=int(input('Enter Starting Number'))
end_num=int(input('Enter ending number'))
my_list=[]
for i in range(start_num,end_num+1):
if i%2==1:
my_list.append(i)
print ('odd numbers in the range', my_list)