Re: Not getting output

2016-10-11 Thread BartC
On 11/10/2016 18:57, dhawanpawa...@gmail.com wrote: def abc(a,b): l=[] for i in range(a,b+1): if i%2!=0: l.append(i) print l return 1 def bg(): y=abc(11,31) print y I am not getting the output, but if i call method abc outside the function then it's

Re: Not getting output

2016-10-11 Thread Michael Torrie
On 10/11/2016 11:57 AM, dhawanpawa...@gmail.com wrote: > def abc(a,b): > l=[] > for i in range(a,b+1): > if i%2!=0: > > l.append(i) > print l > return 1 > > def bg(): > y=abc(11,31) > print y > I am not getting the output, but if i call

Re: Not getting output

2016-10-11 Thread Jussi Piitulainen
dhawanpawa...@gmail.com writes: > def abc(a,b): > l=[] > for i in range(a,b+1): > if i%2!=0: > > l.append(i) > print l > return 1 > > def bg(): > y=abc(11,31) > print y > > I am not getting the output, but if i call method abc outside th

Not getting output

2016-10-11 Thread dhawanpawan32
def abc(a,b): l=[] for i in range(a,b+1): if i%2!=0: l.append(i) print l return 1 def bg(): y=abc(11,31) print y I am not getting the output, but if i call method abc outside the function then it's coming -- https://mail.python.org/mai