Day 76 of #100DaysOfCode: Python *args! , *args allows functions to accept any number of positional arguments, packing them into a tuple for flexible processing. Perfect for when you don't know how many inputs you'll get: • Calculate sums with varying numbers (sum_all(1,2,3,4,5)) • Works with any iterable for dynamic function calls GitHub: https://lnkd.in/gZ5cQ3Jc #Python #Coding #100DaysOfCode #Programming #LearnToCode #DevCommunity
Python *args for flexible function calls
More Relevant Posts
-
#Day4–5 of My Python Journey | #100DaysOfCode Leveling up my Python basics step by step! 1. Learned about Type Casting (converting strings to integers) 2. Understood the difference between implicit vs explicit conversion 3. Explored how to handle user input using input() 4. Practiced taking multiple inputs and performing calculations One interesting learning Without type casting, numbers taken as input behave like strings (concatenation instead of addition). Small concept, but super important! Consistency is building confidence day by day Excited to dive deeper into Python and start building real projects soon! #Python #100DaysOfCode #CodingJourney #LearnToCode #Programming #TechLearning #DeveloperJourney
To view or add a comment, sign in
-
-
Day 13 of my #100DaysOfCode challenge Today I explored *higher-order functions* in Python — specifically 'map()' and 'filter()'. Here’s what I learned: - How map() applies a function to every element in a list - Using lambda functions for quick, inline operations - Converting map objects into lists to view results - How filter() helps extract elements based on conditions (like finding odd numbers) It’s amazing how these built-in functions make code more concise and powerful Small steps every day, but they’re adding up! #Python #CodingJourney #LearnToCode #100DaysOfCode #Programming #DeveloperLife #SkillShikshya
To view or add a comment, sign in
-
-
Python 🐍 3.14.4 Just Released This release includes several break fixes, including a few related to multiprocessing and asyncio subprocesses. For the full list, see as follows. #python #programming #python3144 #asyncio #multiprocessing https://lnkd.in/g-8qUX_Q
To view or add a comment, sign in
-
Day 78 of #100DaysOfCode: Python Recursion! , Recursion is a technique where a function calls itself to solve problems by breaking them into smaller subproblems. Two classic examples: • Factorial: n! = n × (n-1)! with base case at 0! = 1 • Fibonacci: each term is sum of two previous terms, using base cases for first two numbers GitHub: https://lnkd.in/gcK5rP_n #Python #Coding #100DaysOfCode #Programming #LearnToCode #DevCommunity
To view or add a comment, sign in
-
-
🚀 Today I learned: Instance Variables vs Class Variables in Python While diving deeper into Python OOP, I explored an important concept — the difference between instance variables and class variables. Here’s a simple breakdown 👇 🔹 Instance Variables - Defined inside the "__init__" method - Unique for each object - Stored separately for every instance 🔹 Class Variables - Defined inside the class but outside methods - Shared by all objects of the class - Same value across all instances (unless changed) 💡 Key Difference: - Instance variable → Object-specific - Class variable → Shared across all objects Understanding this helps in writing efficient and structured code, especially when working on larger projects. #Python #OOP #Programming #Coding #LearningJourney #100DaysOfCode
To view or add a comment, sign in
-
-
💻 Exploring Recursion in Python 🚀 Today I worked on implementing two classic recursive problems — Factorial and Fibonacci — in Python. At first, small mistakes like typos and function naming issues slowed me down, but debugging them helped me understand recursion much better. 🔁 Key Learnings: • Importance of base conditions in recursion • How recursive calls build up the final result • Debugging is where real learning happens Seeing the Fibonacci output finally work (233 for n=13) was a satisfying moment! 🙌 Step by step, getting closer to mastering problem-solving and logic building. #Python #CodingJourney #Recursion #LearningByDoing #Debugging #100DaysOfCode #DeveloperLife #Programming #TechSkills
To view or add a comment, sign in
-
-
📘 Python MahaRevision – Chapter 2 Complete! Continuing my revision journey, today I covered: 🔹 Variables in Python 🔹 Data Types (int, float, string, boolean, etc.) 🔹 Type checking and type casting Understanding how data is stored and manipulated is one of the most important foundations in programming—and this chapter really helped reinforce that 💡 🧠 Practice Set Done! I solved questions based on: • Declaring and updating variables • Identifying data types • Performing type conversions • Simple input/output problems Consistency is the goal, and small steps like these are building strong fundamentals 🚀 More chapters coming soon—stay tuned! #Python #CodingJourney #LearningInPublic #Programming #Tech #Consistency
To view or add a comment, sign in
-
🧠 Python Trap You’ll Probably Hit Once When you create a list using multiplication like * 3, Python doesn’t create separate inner lists. Instead, it creates multiple references to the same list in memory. So when you modify one, all of them change together. But when you use a list comprehension, each inner list is created independently. That means changes stay isolated, exactly as you’d expect. This small difference is responsible for a lot of confusing bugs, especially in nested data structures. Reference: https://lnkd.in/gWBiknUH #pythonprogramming #learnpython #coding #python
To view or add a comment, sign in
-
-
Built a simple Dice Roller using Python. As part of practicing Python basics, I created a small program that simulates rolling a dice. This program: • Generates a random number between 1 and 6 • Allows the user to roll multiple times • Uses loops and user input for interaction Through this project, I practiced: • Random module • Loops • Conditional statements • Handling user input It’s a simple project, but it helped me understand how randomness and control flow work together. Still learning and building step by step. #Python #BeginnerProject #DiceRoller #LearningInPublic #CodingJourney
To view or add a comment, sign in
-
-
In Python, a class creates objects. But who creates the class? Day 41/50 - Metaclasses Think of it this way: -> Cookie = object -> Cookie cutter = class -> The machine that makes cookie cutters = metaclass #Python #Metaclasses #50DaysOfPython #Day41 #Programming #LearnPython
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