Not getting output

dhawanpawan32 at gmail.com dhawanpawan32 at gmail.com
Tue Oct 11 13:57:24 EDT 2016


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



More information about the Python-list mailing list