File type

Design a function @extensions(lfich)@ which, given a list of filenames @lfich@, returns a dictionary that associates each type of file (its extension) with the list of the filenames of that type.

Sample session

Problem information

Author: InfBesos

Generation: 2026-01-25T16:19:34.898Z

© Jutge.org, 2006–2026.
https://jutge.org