Day 17/100: Creating My First Custom Class in Python! Today was a "Level Up" day in my #100DaysOfCode journey. I moved from using existing classes to building my own from scratch! What I built: The Quiz Game I developed a Quiz application entirely based on Object-Oriented Programming (OOP). This wasn't just about the game; it was about structuring data professionally. Key Concepts Mastered: Custom Classes: Defined a Question class to act as a blueprint for every quiz item. The Constructor (__init__): Learning how to initialize attributes (text & answer) the moment an object is created. Brain Logic: Created a QuizBrain class to manage the game's flow—tracking the current question, checking answers, and maintaining the score. Seeing the logic separated into clean, modular classes makes me realize how scalable professional software is built. Check out my Quiz Game code here: https://lnkd.in/gF8dYvAS #Python #OOP #SoftwareDevelopment #100DaysOfCode #QuizGame #LearningToCode #VSCode
Building Custom Classes in Python: Quiz Game Development
More Relevant Posts
-
📚 New article just published on SYUTHD! 🔖 Unlock Client-Side Python: Build Interactive Web Apps with Pyodide & WebAssembly 🏷️ Category: Python Programming 📖 Full article → https://lnkd.in/d2ZuEWc6 👉 Follow our page for more tech tutorials: https://lnkd.in/gsJDptPM 💬 Telegram: https://t.me/nisethtechno 👍 Facebook: https://lnkd.in/gsKv3Dyn #PythonProgramming #Tech #Tutorial #Programming #TechBlog #2026
To view or add a comment, sign in
-
2 Useful python libraries you might need! 1. xlwings : turns your excel into executable app! use it as a function in python to do 1000s of calculations, like running design of experiments, optimizations etc. No more manual work. 2. Pyside: Turn you code into .exe and ship it as a GUI. I use it all the time to make applications.
To view or add a comment, sign in
-
🚀 Master Python: From Zero to Expert Want to learn Python but don’t know where to start? This definitive visual guide breaks down everything you need to know into a vibrant, organized mind map. From the basics and Object-Oriented Programming (OOP) to powerful data science libraries and web development frameworks. This guide is designed to keep you on track as you grow as a programmer. Save this post to refer back to whenever you need to recall a key concept or essential tool. The Python ecosystem is vast, but with the right roadmap, the sky’s the limit! 🐍💻 #PythonProgramming #DataScience #CodeNewbie #Programming #SoftwareDevelopment
To view or add a comment, sign in
-
-
Back to Basics: Mastering the Building Blocks of Python! 🐍 Today, I spent some quality time diving deep into the core pillars of Python programming. Understanding how to structure code efficiently is just as important as knowing how to solve a problem. Here’s a quick breakdown of my key takeaways: Functions: The heart of clean, reusable code. It's all about the DRY (Don't Repeat Yourself) principle. Arguments & Parameters: Learning how to pass data into functions to make them dynamic and flexible. Return Values: Understanding how a function "outputs" results to be used elsewhere in the application. Scope (Global vs. Local): A crucial concept! Mastering where variables live and die to avoid bugs and memory leaks. Small steps every day lead to big results. Excited to implement these fundamentals more effectively in my upcoming FastAPI projects! 🚀 #Python #SoftwareDevelopment #CodingLife #ContinuousLearning #BackendDeveloper #TechCommunity #CleanCode #Programming
To view or add a comment, sign in
-
-
🚀 Built a Python Quiz Game Engine: Here’s What I Learned I recently developed a fully functional Quiz Game Engine in Python designed with scalability, clean architecture, and real world usability in mind. 🔍 Key Highlights: Multiple question types (Q&A, MCQ, True/False) Time-based answering system using multi-threading JSON Schema validation for structured data integrity Automated scoring + CSV-based result tracking Modular and type-safe code design This project pushed me to think beyond “just making it work” focusing instead on: ✔ Clean architecture ✔ Input validation ✔ Real-world usability ✔ Performance under constraints (timers) 💡 One interesting challenge: implementing a thread-safe timer system without external libraries. If you're learning Python, don’t just build scripts build systems. 🔗 Check it out: https://lnkd.in/deba_WM7 #Python #SoftwareEngineering #OpenSource #Projects #LearningByDoing #Programming
To view or add a comment, sign in
-
-
🚀 Just Built My First API Integration Project in Python! Today I worked on integrating a live Quotes API using Python and the requests library. GITHUB Repo Link:- https://lnkd.in/gdx-b94v The project fetches random motivational quotes from an online API and displays them in real-time. 💡 Key learnings from this project: How to work with APIs and endpoints Handling JSON responses in Python Using response.raise_for_status() for error handling Writing clean exception handling with try-except Saving API data into a file with timestamps 📌 Built Features: Fetch random quotes from API Display quote & author in terminal Save quotes in a text file for future use This small project helped me understand how real-world applications communicate with external services. Next step: Building a GUI-based Quote Generator App 🚀 #Python #APIs #BeginnerProjects #CodingJourney #100DaysOfCode #Developers #LearningByDoing
To view or add a comment, sign in
-
-
Uploaded a small Python To-Do CLI project to GitHub today. A simple practice build to get better with Python basics, loops, conditions, lists, and logic building. Trying to stay consistent with small daily projects and learn by actually building. GitHub: [https://lnkd.in/gGscJtCP] #Python #GitHub #CodingJourney #PythonProjects #LearningInPublic
To view or add a comment, sign in
-
Built a simple File Reader CLI in Python today. This project takes a file path as input, opens the file, reads its contents, and prints everything directly in the terminal. What I learned while building it: • Taking user input with input() • Opening files using open() • Reading file content with read() • Using with for safe file handling • Adding error handling with try/except Small projects like this are helping me strengthen my Python fundamentals and get more comfortable with writing clean, practical code. GitHub Repository: https://lnkd.in/gud495tr #Python #PythonProjects #CLI #CodingJourney #Programming #LearningInPublic
To view or add a comment, sign in
-
📅 Day 3 of My Python Journey 🐍 🚀 Just Built a Number Guessing Game in Python! 🎯 In this mini project, the program generates a random number between 1 and 10, and the user has 4 chances to guess the correct number. 🔹 Concepts I used in this project: • random module to generate numbers • time module to create delay • while loop for repeated attempts • if-elif-else conditions • score calculation logic 🎮 Game Features: ✔ Random number generation ✔ 4 chances to guess the number ✔ Hints whether the number is higher or lower ✔ Score based on remaining attempts This project helped me understand how programming logic works in real scenarios. I am consistently improving my Python skills and moving step-by-step towards becoming a Full Stack Developer 💻 GitHub Link: https://lnkd.in/gm2eQTXm Feedback and suggestions are welcome 🙌 #Day3 #python #coding #programming #developer #learning #100DaysOfCode #softwaredeveloper #github #pythonprojects
To view or add a comment, sign in
-
-
🧠 Python Concept: pass statement Do nothing… but intentionally 😎 ❌ Problem if True: # nothing here 👉 Error ❌ (Python expects something inside) ✅ Pythonic Way if True: pass 🧒 Simple Explanation Think of pass like a placeholder 🧩 ➡️ “I’ll add code later” ➡️ Keeps program running ➡️ Does nothing 💡 Why This Matters ✔ Avoid syntax errors ✔ Useful in empty blocks ✔ Helps in planning code ✔ Common in real projects ⚡ Bonus Examples 👉 In functions: def future_function(): pass 👉 In loops: for i in range(5): pass 🐍 Sometimes doing nothing is important 🐍 Write code step by step #Python #PythonTips #CleanCode #LearnPython #PassStatement #Programming #DeveloperLife #100DaysOfCode
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development