Sectie 1. Hoofdstuk 18
single
Challenge: List Files with Extension
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 18
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.