Have you ever seen the @overload decorator in the wild and wondered what it's actually for? I wrote a short blog post explaining the problem it solves and how to use it in practice. 🐍 https://lnkd.in/eewYAGpJ #Python #programming #typehints
Kacper B.’s Post
More Relevant Posts
-
📌 Nested Loops in Python Building on my loop concepts, I practiced Nested Loops in Python. A nested loop means placing one loop inside another. The inner loop executes completely for every single iteration of the outer loop. In this example, I used two lists: • One containing properties • One containing fruits The program combines each property with every fruit, showing how nested loops help generate all possible pair combinations. Nested loops are useful when: • Working with multiple lists • Creating combinations • Handling rows and columns • Solving pattern-based problems Step by step, improving my logical thinking and Python fundamentals. 🚀 #Python #Programming #CodingJourney #LearningPython #DataAnalytics
To view or add a comment, sign in
-
-
Day 20-Python Programming 🔁 Introduction to Looping Statements in Python Loops help us execute a block of code repeatedly with ease. This infographic explains: ✔ What looping statements are ✔ Types of loops – while and for ✔ Syntax and working ✔ Simple, clear code examples A must-know concept for every Python beginner 🐍💡 #Python #LoopingStatements #ForLoop #WhileLoop #ProgrammingBasics #LearnPython
To view or add a comment, sign in
-
-
👩💻 Python Quick Exercise 😍 Just wrote a fast & simple Python function to check if a number is prime. A nice little practice for loops, conditionals, and modulus (%). 💯 ✅❌ #Python #Coding #Programming #QuickExercise #LearningByDoing
To view or add a comment, sign in
-
-
🚀 Day 17 – Python While Loop Practice Checking a Palindrome String Today, I practiced checking whether a string is a palindrome using a while loop in Python. A palindrome is a word that reads the same forwards and backwards. Examples: madam, level, radar 🧠 Concept Used: String indexing While loop Conditional statements ✅ What I Learned Today: ✔ How to compare characters from both ends ✔ How while loop works with conditions ✔ Improved logical thinking Consistency is the key to mastering programming 💻✨ #Day16 #Python #WhileLoop #Palindrome #PythonLearning #CodingPractice #LogicBuilding #LearningJourney
To view or add a comment, sign in
-
-
Every program you'll ever write needs decision-making. Here's how Python does it (including a feature most devs don't know about). Day 8/50 - Conditional Statements #Python #Conditionals #MatchCase #50DaysOfPython #Day8 #Programming #LearnPython
To view or add a comment, sign in
-
I recently wrote a beginner-friendly blog on Arithmetic Operators in Python, where I break down core mathematical operations in a simple and practical way. In this blog, I explain: • Addition (+) • Subtraction (-) • Multiplication (*) • Division (/) • Floor Division (//) • Modulus (%) • Exponentiation (**) Along with clear examples and real-world use cases like checking even/odd numbers and performing calculations in programs. Innomatics Research Labs #Python #Programming #Coding #BeginnerDevelopers #SoftwareDevelopment #LearnPython #TechEducation #StudentDeveloper https://lnkd.in/gUWx8vZ4
To view or add a comment, sign in
-
When should you actually use match/case in Python? Let’s ask Cameron Riddell! In this week’s Cameron’s Corner, Cameron looks at Python’s structural pattern matching and the expectations people bring to it. Introduced in Python 3.10, match/case can express complex structural checks more clearly than nested conditionals, but only when used in the situations it was designed for. Learn: ✅ What match/case is really meant to do ✅ Why it behaves differently from simple if/elif chains ✅ How to decide when pattern matching actually improves your code Read here: https://lnkd.in/gqKbDGtZ Have you used match/case in production code yet? Tell us how you're applying it 👇 #Python #Programming #SoftwareEngineering #CameronsCorner
To view or add a comment, sign in
-
-
🤔Think & Guess the Output — Python Challenge🧠💡!! 👩🎓What will be the output of this code? 📚print("2" + "3" * 2) 💡 Take a moment before checking the answer… ✅ Explanation: In Python, * has higher priority than +. Step 1️⃣ "3" * 2 → "33" (string repetition) Step 2️⃣ "2" + "33" → "233" (string concatenation) 🎯 Final Output: 233 📌 Lesson: Programming is not just coding — it’s about understanding how operators work! #Python #CodingChallenge #Programming #LearnToCode
To view or add a comment, sign in
-
-
🚀 Day 75 – Python with DSA | Daily Problem Solving 📌 Problem: Check if Binary String Has at Most One Segment of Ones (LeetCode 1784) Today’s problem focused on understanding string patterns and logical observation. 🔎 Problem Summary: Given a binary string s (containing only 0 and 1) that always starts with 1, determine whether the string contains at most one continuous segment of 1s. #Day75 #Python #DSA #LeetCode #CodingPractice #ProblemSolving #SoftwareEngineering #100DaysOfCode
To view or add a comment, sign in
-
-
Day 11 of Python Built-in Functions – abs() 🐍 Today I learned about the abs() function in Python. It returns the absolute value of a number — removing the negative sign and giving the positive magnitude. print(abs(-10)) # Output: 10 💡 Key Takeaways: Converts negative numbers to positive Useful in math calculations Common in distance, difference, and data analysis problems Simple function, but very useful in real-world coding! #Python #PythonLearning #100DaysOfCode #CodingJourney #PythonBasics #PythonMath 🚀
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