Download presentation

Presentation is loading. Please wait.

Published byLily Glass Modified over 3 years ago

1
G make_adder params: x body: def add_x(y):... Current frames: G

2
G make_adder params: x body: def add_x(y):... Current frames: G, E1 E1 x5

3
G make_adder params: x body: def add_x(y):... Current frames: G E1 x5 add_x params: y body: return x + y add_5 E2 y7

4
G my_list Current frames: G 1234 L make_first_five params: l body: l[0] = 5 E1 5 l

5
G my_list Current frames: G 1234 L my_tuple 1234 T 1234 T 24

6
G count_calls params: fn body: num_times = 0,... Current frames: G, E1 E1 num_times 0 fn params: x body: return x * x square params: arg body: num_times = num_times + 1 counted_square

7
G count_calls params: fn body: num_times = 0,... Current frames: G, E1, E2 E1 num_times 0 fn params: x body: return x * x square params: arg body: num_times = num_times + 1 counted_square E2 arg2 num_times 1

8
G count_calls params: fn body: num_times = 0,... Current frames: G, E1, E2 E1 num_times 0 fn params: x body: return x * x square params: arg body: num_times = num_times + 1 counted_square E2 arg2 1

Similar presentations

OK

Lesson 4-7 Example 1 4-7 Example 1 Find 4.32 × 0.6. 1.Multiply the factors, ignoring the decimal points for now. 432 × 6 = 2592.

Lesson 4-7 Example 1 4-7 Example 1 Find 4.32 × 0.6. 1.Multiply the factors, ignoring the decimal points for now. 432 × 6 = 2592.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on global warming for students free download Editing ppt online Free ppt on employee motivation Ppt on review writing on books Ppt on water pollution and conservation Ppt on sports day Ppt on history of olympics medals Ppt on international business law Ppt on great monuments of india Ppt on hybrid electric vehicles