Miguel Manso wrote:

>
>
> I've tryed to use python some times but I get frustrated very quick. I
> get myself many times needing to figure out how to loop through a
> list, declare an associative array, checking how to pass named
> parameters to functions, and simple things like that.

list = [3,5,9,11]
list.append(17)
for i in list:
    print i

foo = dict()
foo['bar'] = 7
foo['trooll'] = 'green'

for k,v in foo.iteritems():
    print k, v

def test(**args):
    for key in args.keys():
        print key, args[key]

test(a='apple', c='orange')

       Mage

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to