CJCoding With Joseph
15free / daySign inCreate account
TitleTopicsAction
254
Read One FieldThe record `student` is already declared with four fields. Print the value store...
easy○ Not Started
Dictionaries
Solve
255
Age And GPA LinesPrint two lines from the `student` record: first the age, then the gpa, each rea...
easy○ Not Started
Dictionaries
Solve
256
First And Last GradeThe grades in the `student` record are a list stored under the key `grades`. Pri...
easy○ Not Started
Dictionaries
Solve
257
Introduce The StudentPrint the sentence `<first name> is <age> years old.` with both values read from...
easy○ Not Started
Dictionaries
Solve
258
GPA To Two DecimalsPrint the gpa from the `student` record in the form `GPA: <value>` with exactly ...
easy○ Not Started
Dictionaries
Solve
259
Count The Fields And GradesUse `len()` twice on the `student` record: print how many fields the dict holds,...
easy○ Not Started
Dictionaries
Solve
260
Birthday UpdateIt is Giselle's birthday. Change the `age` field of the `student` record to 22 b...
easy○ Not Started
Dictionaries
Solve
261
Add An Email KeyAdd a new field to the `student` record: the key `email` with the value `giselle...
easy○ Not Started
Dictionaries
Solve
264
Average Of The Record GradesCompute the average of the grades list inside the `student` record with `sum` di...
easy○ Not Started
Dictionaries
Solve
265
Age From A Dict Of DictsThe dict `people` maps each name to another dict holding that person's details. ...
easy○ Not Started
Dictionaries
Solve
266
Phone Book LookupA phone book dict maps names to numbers. Read one name from the input (one line,...
easy○ Not Started
Dictionaries
Solve
267
Print Every KeyLoop over the dict `prices` with `for key in prices:` and print each key on its ...
easy○ Not Started
Dictionaries
Solve
268
Keys And Values Side By SideLoop over `prices` and print each key followed by its value on the same line, se...
easy○ Not Started
Dictionaries
Solve
269
Show The Whole DictionaryPrinting a dict shows every key and value in insertion order, with the braces an...
easy○ Not Started
Dictionaries
Solve
270
Province Code To NameThe dict `provinces` translates a two-letter code to a province name. Read one c...
easy○ Not Started
Dictionaries
Solve
271
Menu Price Times QuantityThe dict `menu` holds the price of each item. Read an item name, then a quantity...
easy○ Not Started
Dictionaries
Solve
274
Count Each LetterRead one word from the input (one line, no prompt) and count how many times each...
easy○ Not Started
Dictionaries
Solve
275
Highest Score In The DictFind the highest value in the dict `scores` with a loop rather than `max`: start...
easy○ Not Started
Dictionaries
Solve
276
Total Of All ValuesAdd up every value in the dict `stock` with a loop: start a total at 0 and, for ...
easy○ Not Started
Dictionaries
Solve
277
Two Students One Line EachLoop over the dict of dicts `people` and print one line per person in the form `...
easy○ Not Started
Dictionaries
Solve
278
Fix The Second GradeThe second grade in the `student` record was entered wrongly. Replace it with 81...
easy○ Not Started
Dictionaries
Solve
279
Sum And Best GradePrint the sum of the grades in the `student` record, then on the next line the h...
easy○ Not Started
Dictionaries
Solve
280
Name With First GradePrint one f-string sentence of the form `<first name> scored <grade> on the firs...
easy○ Not Started
Dictionaries
Solve
281
Look Up A CityThe dict of dicts `people` holds an inner dict per person. Read a name from the ...
easy○ Not Started
Dictionaries
Solve
284
Add A Field From InputRead a city from the input (one line, no prompt) and store it in the `student` r...
easy○ Not Started
Dictionaries
Solve
285
What Type Is Each ValueA record can hold values of different types. Print `type()` of three things, one...
easy○ Not Started
DictionariesType Hints
Solve
286
Raise The Bread PriceIncrease the price of bread in the dict `prices` by 0.25, using the current valu...
easy○ Not Started
Dictionaries
Solve
287
Keys On A Single LinePrint all the keys of the dict `prices` on one line separated by single spaces, ...
easy○ Not Started
Dictionaries
Solve
288
Empty Dict GrowsStart from the empty dict `ages`, add the key `maya` with the value 20 and then ...
easy○ Not Started
Dictionaries
Solve
262
Student Summary CardPrint a three-line summary of the `student` record: the line `Name: <first name>...
medium○ Not Started
Dictionaries
Solve
272
Inventory After A SaleThe dict `stock` counts each item on the shelf. Read an item name and then a qua...
medium○ Not Started
Dictionaries
Solve
282
Translate A Word ListThe dict `french` translates English words, and the list `words` holds the words...
medium○ Not Started
Dictionaries
Solve
289
Lookup With A MessageThe dict `book` maps names to phone numbers. Read one name from the input (one l...
medium○ Not Started
Dictionaries
Solve
290
Highest Grade And WhoFind who has the highest score in the dict `scores` with a loop and no `max`: ke...
medium○ Not Started
Dictionaries
Solve
291
Sum Per KeyThe dict `sales` maps each day to a list of amounts. Print one line per day in t...
medium○ Not Started
Dictionaries
Solve
292
Count Words In A ListCount how many times each word appears in the list `words`. Loop over the list w...
medium○ Not Started
Dictionaries
Solve
293
Average Per StudentThe dict of dicts `people` gives each student an inner dict with a `grades` list...
medium○ Not Started
Dictionaries
Solve
294
Menu Order With A CheckThe dict `menu` holds the price of each item. Read an item name and then a quant...
medium○ Not Started
Dictionaries
Solve
295
Pass And Fail TallyThe dict `marks` maps each student to a mark. Count how many passed (a mark of 5...
medium○ Not Started
Dictionaries
Solve
296
Scores Above The CutoffRead a cutoff as a whole number from the input (one line, no prompt) and print e...
medium○ Not Started
Dictionaries
Solve
297
Who Has This NumberThe dict `book` maps names to phone numbers. Read a number from the input (one l...
medium○ Not Started
Dictionaries
Solve
298
Swap Two EntriesSwap the values stored under `left` and `right` in the dict `sides` using a temp...
medium○ Not Started
DictionariesVariables
Solve
299
Record As Key Colon ValueLoop over the `student` record and print one line per field in the form `<key>: ...
medium○ Not Started
Dictionaries
Solve
300
Find The OldestThe dict of dicts `people` holds an inner dict with an `age` for each person. Fi...
medium○ Not Started
Dictionaries
Solve
301
Count Vowels By LetterRead one word from the input (one line, no prompt) and count only its vowels. Th...
medium○ Not Started
Dictionaries
Solve
263
Word Frequency From InputCount how often each word appears. Input: the first line is a whole number `n`, ...
hard○ Not Started
Dictionaries
Solve
273
Contact Book From InputBuild a contact book from the input, then answer one lookup. Input: the first li...
hard○ Not Started
Dictionaries
Solve
283
Totals By CategoryKeep a running total per category. Input: the first line is a whole number `n`, ...
hard○ Not Started
Dictionaries
Solve
302
Student Report From InputBuild a dict of dicts from the input and report on it. Input: the first line is ...
hard○ Not Started
Dictionaries
Solve
303
Order Total From A MenuPrice a whole order against a menu you declare yourself as the dict `{'coffee': ...
hard○ Not Started
Dictionaries
Solve