[Tutor] help

mike viceano ph34r_th3_d4rkn3s at hotmail.com
Fri Aug 25 00:50:26 CEST 2006


hello i need a little help with a common multiple module i am haveing 
problems with the best i can get it is to show the least common multiple i 
think the problem is eather the and command ot the if command

   # finds common multiples
def nums(a,b): # assigns numbers to a and b
    print "enter range"
    c = input(">")
    both=[]
    e=-1
    f=-1
    kl=[]
    ll=[]
    while e<c:
        e=e+1
        k=a*e
        l=b*e
        print a,"X",e,"=",k,"   ",b,"X",e,"=",l
        kl.append(k)
        ll.append(l)
    while f<c:
        f=f+1
        if f in kl and f in ll:
            both.append(f)
    print both

any help would be great



^_^"  s33 y4

_________________________________________________________________
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline



More information about the Tutor mailing list