🐍 90 Days of Python – Day 15 Introduction to Functions Today, I learned about functions in Python, which help structure code into reusable and meaningful blocks. Functions make programs easier to read, maintain, and scale, especially as the codebase grows. 🔹 Key concepts I focused on today: • What a function is and why it is used • Defining functions using def • Passing parameters to functions • Returning values from functions Instead of repeating the same logic again and again, functions allow us to write clean, modular, and reusable code. I’m practicing small examples to strengthen my understanding before applying functions in real-world problems and projects. 📌 Day 15 completed. Writing reusable code, one function at a time. 👉 What was the first Python function you remember writing? #90DaysOfPython #PythonLearning #LearningInPublic #PythonFunctions #ProgrammingBasics #BTechCSE
90 Days of Python - Day 15: Functions in Python
More Relevant Posts
-
Python isn’t popular by accident , it’s powerful because of its simplicity and flexibility. Here’s a quick breakdown of the Top 7 Python data types every developer should master, from handling numbers and strings to structuring real-world data with lists, tuples, and dictionaries. At CourseCode, we focus on teaching Python the right way: ➡️ fundamentals first ➡️ practical examples ➡️ real-world application Whether you’re sharpening your skills or building production-ready systems, mastering data types is non negotiable. 🚀 Learn smart. Build better. 🔗 Project link: [ https://lnkd.in/dFSgX4f6 ] #Python #SoftwareEngineering #Programming #DataTypes #CourseCode #TechEducation
To view or add a comment, sign in
-
-
🐍 90 Days of Python – Day 31 Inheritance in Python | Building on Existing Code Today, I explored inheritance in Python, one of the most powerful OOP concepts that allows a class to acquire properties and behaviors from another class. Inheritance helps reduce code duplication and makes programs more organized and scalable. 🔹 Concepts covered today: ✅ Understanding base (parent) and derived (child) classes ✅ Using the super() function ✅ Method overriding ✅ Types of inheritance (single & multilevel) ✅ Code reusability through inheritance Why inheritance matters: Promotes reusability of existing code Makes applications easier to extend Simplifies maintenance of large systems Widely used in frameworks and real-world projects 📌 Day 31 completed — learning how to extend functionality without rewriting code. 👉 Do you prefer composition or inheritance when designing applications? #90DaysOfPython #PythonInheritance #LearningInPublic #PythonOOP #CleanCode #DeveloperJourney
To view or add a comment, sign in
-
-
🐍 5 Essential Python Tips for Developers Want to write cleaner, smarter, and more Pythonic code? Here are 5 must-know tips every developer should master 👇 🔹 1. List Comprehensions Create concise lists efficiently instead of long loops. 🔹 2. Use enumerate() Loop with both index & value: for i, item in enumerate(my_list): 🔹 3. Master f-Strings Format strings cleanly: f"My variable is {x}" 🔹 4. Leverage *args & **kwargs Pass flexible numbers of arguments to functions. 🔹 5. Use Virtual Environments Isolate project dependencies and avoid conflicts. 💡 Save this post for later and share it with a fellow Python dev! #Python #Programming #DevTips #PythonTips #Coding #SoftwareDevelopment #LearnToCode #TechSkills
To view or add a comment, sign in
-
-
🐍 90 Days of Python – Day 17 Built-in Functions Today, I learned about built-in functions in Python, which help perform common tasks without writing extra code. Python provides many built-in functions that make programs shorter, cleaner, and more efficient. 🔹 Key built-in functions I explored today: • print() – display output • len() – get the length of data • type() – check data types • input() – take user input • range() – generate sequences of numbers Using built-in functions allows us to focus more on problem-solving rather than reinventing basic functionality. I’m practicing these functions to better understand how they simplify everyday coding tasks. 📌 Day 17 completed. Using built-in tools to write cleaner code. 👉 Which Python built-in function do you use the most? #90DaysOfPython #PythonLearning #LearningInPublic #PythonBasics #ProgrammingBasics #BTechCSE
To view or add a comment, sign in
-
-
🐍 90 Days of Python – Day 34 Polymorphism in Python | One Interface, Many Forms Today’s focus was on Polymorphism, one of the core pillars of Object-Oriented Programming that makes Python code flexible, scalable, and easy to extend. 🔹 Concepts covered today: ✅ Understanding polymorphism in OOP ✅ Method overriding in child classes ✅ Same method name, different behaviors ✅ Polymorphism with inheritance ✅ Real-world examples using base and derived classes Polymorphism allows us to: Write generic and reusable code Extend functionality without modifying existing code Build systems that are easy to maintain and scale This concept is widely used in: Large software systems Framework and library design Clean architecture and design patterns 📌 Day 34 completed — learning how Python handles behavior dynamically using polymorphism. 👉 Have you used method overriding in any real project yet? #90DaysOfPython #PythonOOP #Polymorphism #LearningInPublic #CleanCode #SoftwareEngineering #PredictiveAnalyticsJourney
To view or add a comment, sign in
-
-
Have you ever felt like you know Python… but everything is disorganized in your head? You learn variables. Then functions. Then classes. And suddenly Python works… but it doesn’t really make sense yet. That’s the problem... learning isolated concepts is not the same as understanding the language. When you don’t see the bigger picture, programming feels like connecting pieces without knowing what image you’re building. I’m sharing this map as a summary where you can see: • Which parts form the core of the language • How logic flows when the program makes decisions • How data is organized • How functions and classes connect within a project • Why Python scales so well for real-world projects Having this kind of clarity changes how you study, how you practice, and how you approach real problems with code. Do you already work with Python? I’d love to hear about your experience. #Python #LearnPython #Programming #SoftwareDevelopment #ConceptMap
To view or add a comment, sign in
-
-
Learning Python: Today’s Lesson on User Input Validation Today, while working on a Python project involving conditional statements, logical operators, nested if blocks, and the modulo operator, I encountered a ValueError. The issue was simple but important: Python’s int() function cannot process numbers entered with commas (e.g., 250,000). Instead of treating it as a setback, I learned a key real-world lesson: User input is unpredictable, and good programs must account for that. I solved the problem by sanitizing the input before conversion, allowing the program to handle values like 250,000 or 1,000,000 safely. This reinforced an important principle in software development: Writing code is not just about making it work, but making it resilient. Still pushing forward with my learning and building better habits one project at a time. #Python #LearningInPublic #100DaysOfCode #SoftwareDevelopment #TechJourney #ProgrammingBasics #ProblemSolving
To view or add a comment, sign in
-
-
🚀 Day 4 of #100DaysOfCode 📌 Project: Even, Odd & Prime Number Checker (Python) Today, I built a simple yet logic-oriented Python program that checks whether a given number is even or odd and also determines if it is a prime number. 🔹 Implemented reusable functions for clean code 🔹 Used efficient prime checking logic (up to √n) 🔹 Added input validation using exception handling 🔹 Strengthened understanding of conditionals & loops This project helped me improve my problem-solving skills and write more modular Python code. 📂 GitHub Repository: 👉 (https://lnkd.in/gbtp3ZCJ) #Python #100DaysOfCode #Day4 #CodingJourney #Programming #PythonProjects #LearningByDoing
To view or add a comment, sign in
-
Day 2 of Python. Building logic before libraries. Today I deliberately avoided Pandas and NumPy. Instead, I focused on the part that controls everything later: core Python logic. What I worked on: Variables and data types Lists, tuples, dictionaries, sets Conditional logic Loops and flow control The key realization: Libraries don’t make code powerful. Logic does. If logic is weak: Scripts break silently Pipelines fail unexpectedly Debugging becomes guesswork Strong Python fundamentals make everything easier later: Cleaner Pandas transformations Predictable data validation Reliable automation This phase is about training how I think, not what I import. Learning step by step and building confidence in how Python executes, not just how it looks. Tomorrow: functions, modular thinking, and reusable code blocks. If you work with Python: Which basic concept helped you the most early on? #datawithanurag #dataxbootcamp #python #pandas #numpy #datatypes
To view or add a comment, sign in
-
-
Python Foundations 2026 – Part 3 Built-in functions are where Python starts to feel powerful. In Part 3 of our Python Foundations 2026 series, we break down essential Python built-in functions every beginner must know: • int() • float() • str() • len() • type() These functions help you convert data, understand what Python is working with, and avoid common beginner errors. Strong foundations lead to confident coding. Remember: Python Foundations → Wednesdays Other tech articles → Mondays Part 4 (Loops & range()) drops next Wednesday. Learn more: https://lnkd.in/d-Vn9uKZ #Python #LearnToCode #Programming #BeginnersInTech #TechEducation #Python2026 #JMSM #KNKA
To view or add a comment, sign in
-
Explore related topics
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