CJCoding With Joseph
15free / daySign inCreate account
TitleTopicsAction
104
The First GradeThe list `grades` holds five whole-number marks. Print the first one by indexing...
easy○ Not Started
Lists
Solve
105
The Last GradeThe list `grades` holds five marks. Print the last one using a negative index, w...
easy○ Not Started
Lists
Solve
106
Second From Each EndThe list `grades` holds five marks. Print the second element on the first line a...
easy○ Not Started
Lists
Solve
107
First And Last TogetherUsing the list `grades`, print exactly one line in the form `First: <a>, last: <...
easy○ Not Started
Lists
Solve
108
Three From The MiddleThe list `grades` holds eight marks. Print the slice that starts at index 2 and ...
easy○ Not Started
ListsSlicing
Solve
109
The First ThreeThe list `grades` holds eight marks. Print the first three of them as a list by ...
easy○ Not Started
ListsSlicing
Solve
110
From The Fourth OnwardsThe list `grades` holds eight marks. Print every element from index 3 to the end...
easy○ Not Started
ListsSlicing
Solve
111
The Last Three ItemsThe list `names` holds five strings. Print, as one list, only the last three of ...
easy○ Not Started
ListsSlicing
Solve
112
Alternate Grades With A StepThe list `grades` holds eight marks. Print every second element starting with th...
easy○ Not Started
ListsSlicing
Solve
113
Start Stop StepThe list `grades` holds eight marks. Print the elements at indexes 0, 2 and 4 as...
easy○ Not Started
ListsSlicing
Solve
114
Backwards With A SliceThe list `grades` holds eight marks. Print the whole list in reverse order, as o...
easy○ Not Started
ListsSlicing
Solve
115
Total Of The GradesAdd up every number in the list `grades` with the built-in `sum()` function and ...
easy○ Not Started
Lists
Solve
116
How Many GradesPrint the number of elements in the list `grades` using the built-in `len()` fun...
easy○ Not Started
Lists
Solve
117
Lowest And HighestPrint the smallest number in the list `grades` on the first line and the largest...
easy○ Not Started
Lists
Solve
118
Average Of The ClassCompute the average of the list `grades` as the total divided by the count, `sum...
easy○ Not Started
Lists
Solve
119
Average To Two DecimalsThe list `scores` holds three decimal marks. Work out their average with `sum()`...
easy○ Not Started
Lists
Solve
120
Print The Whole ListThe list `prices` holds three floats. First print the list itself in one call, s...
easy○ Not Started
Lists
Solve
121
Change The First GradeThe list `grades` starts with 74. Change the element at index 0 to 95 by assigni...
easy○ Not Started
Lists
Solve
122
Fix The Last GradeThe final value in the list `grades` is wrong. Overwrite the last element, reach...
easy○ Not Started
Lists
Solve
123
Two Lists Become OneTwo lists, `morning` and `afternoon`, hold grades from two sessions. Concatenate...
easy○ Not Started
ListsOperators
Solve
124
A Copy With A SliceMake an independent copy of the list `grades` with a full slice (empty start and...
easy○ Not Started
ListsSlicing
Solve
125
Swap The EndsExchange the first and last elements of the list `grades` using three assignment...
easy○ Not Started
ListsVariables
Solve
126
The Middle GradeFind the middle element of the list `grades` without hard-coding its position: c...
easy○ Not Started
ListsOperators
Solve
127
Initial Of The First NameThe list `names` holds five strings. Print the first character of the first name...
easy○ Not Started
Lists
Solve
128
Row One Column TwoThe two-dimensional list `matrix` is a list of three rows, each a list of three ...
easy○ Not Started
Lists
Solve
129
A Whole RowThe two-dimensional list `matrix` holds three rows. Print the first row on its o...
easy○ Not Started
Lists
Solve
130
One Grade Per LineThe list `grades` holds five marks. Read one integer from `input()` with no prom...
easy○ Not Started
Lists
Solve
131
Count The PassesRead the pass mark as one integer from `input()` with no prompt, then walk the l...
easy○ Not Started
Lists
Solve
132
Largest By HandThe third element of the list `grades` is read from `input()` as one integer wit...
easy○ Not Started
Lists
Solve
133
Class Average ReportUsing the list `grades`, print three labelled lines in this order: `Lowest: <val...
medium○ Not Started
Lists
Solve
134
Ends Of The LineThe list `names` holds five strings. Print one sentence in the form `<first> is ...
medium○ Not Started
Lists
Solve
135
Reverse Then SplitFrom the list `grades` print three slices as lists, one per line: the whole list...
medium○ Not Started
ListsSlicing
Solve
136
Regrade And RecomputeRead one integer from `input()` with no prompt and store it in the element at in...
medium○ Not Started
Lists
Solve
137
Swap Two NamesExchange the elements at index 1 and index 3 of the list `names` with a temporar...
medium○ Not Started
ListsVariables
Solve
138
Merge Two SectionsConcatenate `section_a` and `section_b` with `+` into a list called `merged`, th...
medium○ Not Started
ListsOperators
Solve
139
Sum Of Each RowThe grid `matrix` has three rows of three integers; its centre cell is read from...
medium○ Not Started
Lists
Solve
140
Grades Above The LineRead a threshold as one integer from `input()` with no prompt. Count, with a for...
medium○ Not Started
Lists
Solve
141
Scaled GradesRead a whole-number factor from `input()` with no prompt. Starting from an empty...
medium○ Not Started
ListsOperators
Solve
142
Largest With Its PositionThe third element of `grades` is read from `input()` as one integer with no prom...
medium○ Not Started
Lists
Solve
143
Smallest Without MinThe third element of the list `grades` is read from `input()` as one integer wit...
medium○ Not Started
Lists
Solve
144
First LettersThe second element of the list `names` is read from `input()` with no prompt. Lo...
medium○ Not Started
Lists
Solve
145
Total Without SumThe list `grades` is built from three integers read from `input()`, one per line...
medium○ Not Started
Lists
Solve
146
Down The First ColumnThe grid `matrix` has three rows; its top-left cell is read from `input()` as on...
medium○ Not Started
Lists
Solve
147
Numbered LinesThe last element of the list `names` is read from `input()` with no prompt. Prin...
medium○ Not Started
Lists
Solve
148
Longest NameThe second element of the list `names` is read from `input()` with no prompt. Fi...
medium○ Not Started
Lists
Solve
149
Palindrome NumbersRead five integers from `input()`, one per line with no prompts, into a typed li...
hard○ Not Started
ListsPractice Problems
Solve
150
Row Totals By HandThe grid `matrix` has three rows of three integers: declare the first two rows a...
hard○ Not Started
Lists
Solve
151
Passing Grades OnlyDeclare the list `grades` as `[74, 88, 91, 65, 79, 40, 32, 30]` and read the pas...
hard○ Not Started
ListsOperators
Solve
152
Largest In The GridThe grid `matrix` has three rows of three integers: declare it as `[[3, 8, 1], [...
hard○ Not Started
Lists
Solve
153
Column TotalsThe grid `matrix` has three rows of three integers: declare the first two rows a...
hard○ Not Started
Lists
Solve