Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: List Files with Extension | Automating Tasks with Python
Automating System Tasks with Python: A Beginner's Guide
Sectie 1. Hoofdstuk 18
single

single

bookChallenge: 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 filenames list.
  • Check if the current filename ends with ".txt".
  • If it does, print the filename.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 18
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt