Seksjon 1. Kapittel 18
single
Challenge: List Files with Extension
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 18
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår