Quirlee

Learn in Seconds

Shots Feed
Explore Feeds
Leaderboard
Profile
Community
Activity
Playlists
Explore Courses
Notifications

Company & Info

Become a Founding CreatorAbout QuirleeUser ReviewsContact & SupportHelp CenterPrivacy & Terms

Sign in to track your XP, sync streaks, and climb rankings.

Quirlee
Quirlee

Navigation

Shots Feed
Explore Feeds
Leaderboard
Profile
Community
Activity
Playlists
Explore Courses
Notifications

Company & Info

Become a Founding CreatorAbout QuirleeUser ReviewsContact & SupportHelp CenterPrivacy & Terms
Quirlee

Loading...

Hubs

Learn & Grow TogetherCommunity

For General Knowledge
L
#General Knowledge

Learn & Grow Together

1 Members • Created by @learntree

1

Members

2

Discussions

1

Solved

Discussions & Doubts

2
LearnTree
LearnTree@learntree
Discussion

Advanced Python Project: Build Your Own Smart File Organizer!

šŸ Level Up Your Python Skills! šŸš€ Today's project: Smart File Organizer šŸ“‚ Tired of messy folders? Build a Python automation tool that automatically sorts files into different folders based on file extensions. šŸ’” What you'll learn: File handling with os File management with shutil Functions and dictionaries Loops and conditional statements Automation using Python šŸ”„ Coding Challenge: Can you upgrade this project to automatically detect duplicate files and generate an organization report? Keep learning. Keep building. Keep coding! šŸ’» #Python #AdvancedPython #PythonProjects #Automation #CodingCommunity #LearnProgramming

python
import os
import shutil

def organize_files(folder_path):

    file_types = {
        "Images": [".jpg", ".jpeg", ".png", ".gif"],
        "Documents": [".pdf", ".docx", ".txt", ".xlsx"],
        "Videos": [".mp4", ".mkv", ".avi"],
        "Music": [".mp3", ".wav"],
        "Archives": [".zip", ".rar"]
    }

    for filename in os.listdir(folder_path):

        file_path = os.path.join(folder_path, filename)

        if os.path.isfile(file_path):

            extension = os.path.splitext(filename)[1].lower()

            for folder, extensions in file_types.items():

                if extension in extensions:

                    target_folder = os.path.join(folder_path, folder)
                    os.makedirs(target_folder, exist_ok=True)

                    shutil.move(
                        file_path,
                        os.path.join(target_folder, filename)
                    )

                    print(f"Moved: {filename} → {folder}")
                    break

    print("\nāœ… File organization completed!")


path = input("Enter folder path: ")
organize_files(path)
LearnTree
LearnTree@learntree
Solved

šŸŽ‰ WELCOME TO LEARN & GROW TOGETHER! 🌱

Hello everyone! šŸ‘‹ A very warm welcome to all our amazing learners! ā¤ļø We're excited to have you here. This community is created for people who believe that learning never stops and knowledge grows when we share it. šŸ“š What can you do here? Learn something new every day. Share your knowledge and ideas. Ask questions without hesitation. Discover new skills and opportunities. Participate in quizzes and challenges. Help and motivate other learners. šŸ¤ Let's make this community a place where everyone feels welcome, respected, and inspired. 🌟 Let's Get to Know Each Other! Introduce yourself in the comments: What's your name? Where are you from? What are you currently learning? What's one skill you want to develop? šŸ’” Remember: You don't have to be perfect to start. You just have to be willing to learn. One Community. Endless Knowledge. Unlimited Growth! šŸš€ Once again, WELCOME EVERYONE! šŸŽŠ #LearnTogether #GrowTogether #KnowledgeSharing #LearningCommunity

About Community

🌟 Welcome to Learn & Grow Together! This is a friendly community for students, learners, beginners, and knowledge seekers. Our mission is to learn new things, share knowledge, develop useful skills, solve problems, and help each other grow. šŸ“š Learn something new every day. šŸ’” Share your ideas and knowledge. šŸ¤ Help others and learn together. šŸŽÆ Stay motivated and achieve your goals. Remember: You don't need to be an expert to join. You just need the willingness to learn! Learn Together. Grow Together. Succeed Together! šŸš€

Guidelines

Respect Everyone: Treat all members with kindness and respect. Be Helpful: Help others whenever you can. Stay on Topic: Share content related to learning, education, and personal growth. No Spam: Avoid unnecessary promotions, advertisements, and repeated messages. No Hate or Bullying: Discrimination, harassment, and offensive language are not allowed. Share Genuine Knowledge: Don't spread fake news or misleading information. Ask Questions: Never feel shy about asking questions. Support Beginners: Everyone starts somewhere. Never make fun of someone's mistakes. Give Credit: Respect original creators when sharing their content. Stay Active: Participate in discussions and learning activities.

Live Sessions

No upcoming live sessions.

Top Contributors

XP Rank
#1
LearnTree
LearnTree
@learntree
910 XP