Login and get codingIn this Bite you are presented with a
list
of car (manufacturer, model)tuple
s. Group the data by manufacturer printing the following table output of MANUFACTURER + bullet list of car models.This is the truncated output you are expected to deliver (see the tests for the full output):
CHEVROLET - Cavalier - Corvette - Impala ... MERCEDES-BENZ - 300D - 600SEL - E-Class ... VOLKSWAGEN - GTI - Passat - RoutanAs you see both manufacturers and models are alphabetically ordered.
You might want to check out
itertools.groupby
for this one, but there are probably more ways to do it. Have fun and keep calm and code in Python!
Will you be the 189th person to crack this Bite?
Resolution time: ~42 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 2.8 on a 1-10 difficulty scale.
» You can do it! 😌