3. Syntax of a List¶
An empty list
|
Activity: CodeLens 3.1 (cl_l17_3a_en)
A list with three grades.
|
Activity: CodeLens 3.2 (cl_l17_3b_en)
Accessing a grade.
Print output (drag lower right corner to resize)
|
Activity: CodeLens 3.3 (cl_l17_3c_en)
Changing the first grade.
Print output (drag lower right corner to resize)
|
Activity: CodeLens 3.4 (cl_l17_3d_en)
Average of 5 grades.
Print output (drag lower right corner to resize)
|
Activity: CodeLens 3.5 (cl_l17_3e_en)
Note:
x += 1
is the same asx = x + 1
.
You have attempted 1 of 2 activities on this page