🎯 Day 15 of My #100DaysOfPython Challenge — Functions in Python! 🐍 Today’s focus was on one of the most powerful building blocks in Python — Functions 💡 🔹 What I learned: ✅ Defining and calling functions using the def keyword ✅ Understanding parameters and arguments ✅ Using return statements to send results back ✅ Exploring default, keyword, and positional arguments ✅ Learning about variable scope — local vs global variables ✅ Writing lambda (anonymous) functions for quick operations 🔹 Example: def greet(name): return f"Hello, {name}!" print(greet("Savita")) Output: Hello, Savita! 🔹 Key takeaway: Functions help break complex programs into smaller, reusable pieces — making code clean, modular, and efficient. ✨ #Day 15 #Python #LearningJourney #CodingChallenge #DataScience #WomenInTech #100DaysOfCode #FunctionsInPython #infosys_Springboard #herkey
Learning Functions in Python for #100DaysOfPython Challenge
More Relevant Posts
-
👩💻 “That’s not very Pythonic…” We’ve all heard that phrase before. But what does it actually mean? This week I took a small, messy Python script and refactored it step by step, each time applying a principle that makes the code more Pythonic: 🔁 Replacing classes with functions 🧼 Using @dataclass for structure 📎 Adding type annotations 🧘 Embracing the Zen of Python ... and more! 👉 Watch here: https://lnkd.in/g5fhyarh #python #cleancode #refactoring #zenofpython #pythonic #arjancodes
To view or add a comment, sign in
-
-
👩💻 “That’s not very Pythonic…” We’ve all heard that phrase before. But what does it actually mean? This week I took a small, messy Python script and refactored it step by step, each time applying a principle that makes the code more Pythonic: 🔁 Replacing classes with functions 🧼 Using @dataclass for structure 📎 Adding type annotations 🧘 Embracing the Zen of Python ... and more! 👉 Watch here: https://lnkd.in/gaCp34fC #python #cleancode #refactoring #zenofpython #pythonic #arjancodes
To view or add a comment, sign in
-
-
Day 70 of #100DaysOfCode 🐍 Today, I learnt about Dictionaries in Python — one of the most powerful data structures for storing and managing key–value pairs. 💡 Key takeaways: ✅ How to create, access, and modify dictionaries ✅ How to loop through keys and values ✅ Using methods like .items(), .keys(), and .values() ✅ Why dictionaries are great for organizing real-world data Understanding dictionaries really deepened my confidence in handling structured data efficiently. Python just keeps getting more interesting! 🧠✨ #100DaysOfCode #Python #CodingJourney #LearningInPublic #DataStructures
To view or add a comment, sign in
-
-
🟨 Day 08 – Python Practice: Leveling Up with Functions! 🟨 Today, I tackled three key concepts in Python by solving practical problems in a single, integrated program: 🔹 Default Arguments – Built a calculator that adds and subtracts values, with smart defaults when no second number is given. 🔹 *args (Variable-Length Arguments) – Wrote a function to compute total and average marks, no matter how many scores are entered. 🔹 **kwargs + Lambda – Created a dynamic profile card using keyword arguments and used a lambda function to square the user’s age! 📌 Key Takeaways: ✅ Improved my understanding of Python function parameters ✅ Practiced code reusability and readability ✅ Combined logic cleanly in a single script 🚀 Small steps like this are building my confidence one line of code at a time! #100DaysOfCode #Python #LearningByDoing #FunctionArguments #LambdaFunctions #CodeNewbie #DevJourney #PythonPractice #Day08
To view or add a comment, sign in
-
-
🟨 Day 08 – Python Practice: Leveling Up with Functions! 🟨 Today, I tackled three key concepts in Python by solving practical problems in a single, integrated program: 🔹 Default Arguments – Built a calculator that adds and subtracts values, with smart defaults when no second number is given. 🔹 *args (Variable-Length Arguments) – Wrote a function to compute total and average marks, no matter how many scores are entered. 🔹 **kwargs + Lambda – Created a dynamic profile card using keyword arguments and used a lambda function to square the user’s age! 📌 Key Takeaways: ✅ Improved my understanding of Python function parameters ✅ Practiced code reusability and readability ✅ Combined logic cleanly in a single script 🚀 Small steps like this are building my confidence one line of code at a time! #100DaysOfCode #Python #LearningByDoing #FunctionArguments #LambdaFunctions #CodeNewbie #DevJourney #PythonPractice #Day08
To view or add a comment, sign in
-
-
👋 Welcome back, everyone! Let’s continue our Python learning journey 🚀 Today, we’ll dive into some core basics: Variables, Data Types, Input/Output, and Comments — the foundation of every Python program! Swipe 👉 to learn with simple examples and to understand how Python handles data, interacts with users, and keeps your code readable 💡 🔁 Save this post & Follow for more Python notes! #Python #DataScience #MachineLearning #LearningJourney #LinkedInLearning #CodingForBeginners
To view or add a comment, sign in
-
I’ve been revisiting Python lately — not because I’m new to it, but because I wanted to rebuild my technical foundation from the ground up. The “Learning Python” course reminded me how much clarity comes from simple things: loops, data structures, reading files, and writing functions. It’s like dusting off old tools and realizing how powerful they still are. Sometimes growth isn’t about learning something new — it’s about understanding what you already know, better. 💭 What’s one technical skill you revisited recently that surprised you with how much you’d missed it? #Python #LearningJourney #BiomedicalEngineering #ContinuousLearning #EngineeringMindset #TechSkills
To view or add a comment, sign in
-
Week 8 – List Comprehensions in Python 🐍 Clean, efficient, and readable — that’s the Pythonic way. List comprehensions turn lengthy loops into elegant one-liners. 💡 Before: squares = [] for i in range(5): squares.append(i**2) ⚡ After: squares = [i**2 for i in range(5)] ✅ Benefits: More readable and concise Faster execution Fewer lines, less clutter When you can think in list comprehensions, you’re no longer just writing Python — you’re thinking Python. #PythonHacks #CleanCode #DataStructures #LearnPython #CodingTips #PythonProgramming #Efficiency
To view or add a comment, sign in
-
💻 Exploring Python’s zip() Function! 🐍 In this snippet, I used the zip() function to combine multiple lists — names, marks, and departments — into a single dictionary. It’s a simple yet powerful way to handle grouped data efficiently. 📘 Concepts used: ➡️ zip() function ➡️ Type conversion using dict() ➡️ Nested zipping for multiple lists Always fun to see how Python makes data handling so elegant and readable! ✨ #Python #Coding #Programming #Learning #DataHandling #zipfunction @10000coders @batula venkata narayana
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