[Solved] combinations program help in python [closed]


Alright I’ve done the hard part hoping you can finish it up:

tmp = []                                                                        
def recal(_list):                                                                    
    n = []                                                                      
        if '-' in _list:                                                                
        for i in 0,1:                                                           
            t = _list[:]                                                            
            t[t.index('-')] = i                                                 
            n.append(recall(t))                                                   
    else:                                                                       
        tmp.append(l)                                                           
        return l                                                                

recall(['-','-','0','1'])
for l in tmp:
    print int(''.join(l),2)

0

solved combinations program help in python [closed]