# Introduction In this project, you will learn how to write a Python script that counts the number of files with a specific file type in a given directory. This is a common task when working with files and directories in Python, and it can be useful in a variety of applications, such as data analysis, file management, and system administration. ## ð Preview ```zsh $ python3 file_type.py Please enter the file type: txt 3 ``` ## ðŊ Tasks In this project, you will learn: - How to implement the `count_file_type` function to count the number of files with a specific file type - How to handle user input and display the file type count - How to enhance the script to handle multiple file types and directory access errors ## ð Achievements After completing this project, you will be able to: - Write a Python script that counts the number of files with a specific file type in a directory - Handle user input and display the file type count - Enhance the script to handle edge cases and provide more functionality
Click the virtual machine below to start practicing