
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ECS145 Scripting Languages - Spring 2005 Name:
(a) print 12
(b) x = range(10) x.reverse() print x[6:9]
(c) x = "onetwothree" print x[5:8] + x[-1] + x[8]
(d) x = "one" print x*
f ib(n) = f ib(n โ 1) + f ib(n โ 2)
where f ib(0) = 1 and f ib(1) = 1