Section 1. Chapitre 18
single
Challenge: List Files with Extension
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
Write a function that filters and prints filenames ending with ".txt" from a given list.
- Loop through each element in the
filenameslist. - Check if the current filename ends with ".txt".
- If it does, print the filename.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 18
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion