Day 77 of #100DaysOfCode: Python **kwargs! , **kwargs allows functions to accept any number of keyword arguments, packing them into a dictionary for flexible data handling. Two practical uses: • Display person info with named attributes (name, age, city) • Calculate total price by passing items with their costs GitHub: https://lnkd.in/gEd3yYq7 #Python #Coding #100DaysOfCode #Programming #LearnToCode #DevCommunity
Python **kwargs for flexible data handling
More Relevant Posts
-
**“Understanding logic > memorizing code 👇 This Python snippet: ✔ Takes a number ✔ Extracts the last digit using % 10 ✔ Checks if that last digit is divisible by 3 Example: 123 → last digit = 3 → 3 % 3 = 0 → True ✅ But here’s where many go wrong ⚠️ This does NOT mean the entire number is divisible by 3. Actual rule: A number is divisible by 3 if the sum of its digits is divisible by 3. Example: 111 → 1+1+1 = 3 → divisible by 3 ✅ But last digit = 1 → not divisible ❌ Takeaway: Writing code is easy. Understanding the logic behind it is what makes you a strong programmer. #Python #Programming #CodingLogic #LearnToCode #DeveloperMindset”**
To view or add a comment, sign in
-
-
🐍 Python Quick Quiz for Developers! Can you identify the data type of this object? 🤔 Testing your Python knowledge with a quick challenge! 👨💻 Copy code Python L = [1, 23, 'hello', 1] What data type is the object above? A) List B) Dictionary C) Array D) Tuple 💬 Drop your answer in the comments! Let’s see who gets it right. Small quizzes like this help us strengthen our programming fundamentals and keep our coding skills sharp. 🚀 #Python #CodingChallenge #Programming #Developers #SoftwareDevelopment #LearnPython #TechCommunity #CodeDaily #PythonQuiz
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
-
-
🔁 Python Revision – Dictionaries Continuing my Python fundamentals revision 🐍 In this session, I focused on: ✔️ Dictionaries (key-value pairs) ✔️ Accessing and updating values ✔️ Dictionary methods (keys(), values(), items()) ✔️ Iterating through dictionaries Practiced storing and managing structured data using dictionaries, which is essential for handling real-world datasets. Documented my practice in a Colab Notebook and shared it as a PDF to track my progress. Learning how to organize and manipulate data more effectively 📊 #Python #Revision #Dictionaries #Programming #DataAnalytics #LearningJourney #Coding
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
-
-
🚀 Day 16 of #30DaysOfPython Today I built a Secure Password Generator using Python. This program allows users to: • Customize password length • Include uppercase letters, digits, and special characters • Generate strong random passwords 📚 Concepts practiced: • Python modules (random, string) • Conditional logic • User input handling • Randomization Building tools like this shows how Python can solve real-world problems. #Python #CodingChallenge #30DaysOfCode #Projects #LearnInPublic #Programming #NxtWave
To view or add a comment, sign in
-
-
🔁 Python Revision – Conditional Statements Continuing my Python fundamentals revision 🐍 In this session, I focused on: ✔️ if statements ✔️ if-else conditions ✔️ elif ladder ✔️ Nested conditions Practiced writing logic-based programs using conditions, which is essential for decision-making in code. Documented my learning in a Jupyter Notebook and shared it as a PDF to track my progress. Building strong logic step by step 💡 Next: loops and more problem-solving practice 🚀 #Python #Revision #Programming #Coding #LearningJourney #DataAnalytics
To view or add a comment, sign in
-
🤜 Python Challenge #9 – Answer Revealed! '==' checks values, 'is' checks memory. 👉 a == b -> Both lists have same values → True 👉 a is b -> Both are different objects in memory → False Output: True False #python #pythonchallenge #codechallenge #code #pythonlist #pythonbasics #programming #coding #learnpython #100daysofcode
To view or add a comment, sign in
-
-
🐍 Python Learning – Day 19 💻 Command Line Arguments in Python Today I learned how to take input from the command line using Python. This is useful when running scripts with different inputs. 📌 Example:- import sys print("Script name:", sys.argv[0]) print("Argument:", sys.argv[1]) 📌 What I learned:- • sys.argv is used to access command line arguments • argv[0] is the script name • Useful for automation and scripting This is commonly used in real-world scripts and DevOps tasks. ___Learning step by step___🚀 #Python #DevOpsJourney #Automation #Programming #LearningInPublic
To view or add a comment, sign in
-
Day 4/30 – Exploring Python concepts Today I spent some time learning important Python concepts like loops, lists, tuples, and dictionaries. Loops help us repeat tasks efficiently instead of writing the same code multiple times. Lists and tuples allow us to store multiple values in a single variable, making data easier to manage. Dictionaries help organize data in a key-value format, which makes accessing information faster and more structured. Understanding these concepts helped me see how Python can be used to handle data and automate tasks in a much simpler way. Each small concept I learn is helping me build a stronger foundation in programming. Excited to keep learning and improving every day. ✨ #Day4 #30DaysOfPosting #PythonLearning #CodingJourney #ProgrammingBasics #LearningJourney
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