Possible new syntax
Parallel for loop
for x in L1; y in L2: print x, “<-->”, y
Extended slicing for all sequences
x[0:10:2] means:
y = []
for i in range(0,10,2): y.append(x[i])
return y
Previous slide
Next slide
Back to first slide
View graphic version