8. Multiple assignment

Activity: 8.1 ActiveCode (ac_l40_8_en)

1x = 4
2y = 5
3x = y
4y = x
line that just executed

next line to execute

Frames
Objects

Activity: CodeLens 8.2 (cl_l40_8a_en)

1x = 4
2y = 5
3temp = x
4x = y
5y = temp
line that just executed

next line to execute

Frames
Objects

Activity: CodeLens 8.3 (cl_l40_8b_en)

1x = 4
2y = 5
3x, y = y, x
line that just executed

next line to execute

Frames
Objects

Activity: CodeLens 8.4 (cl_l40_8c_en)

You have attempted 1 of 3 activities on this page