🌟 #Day13 of My #50DaysofPython Learning Journey 🌟 Today, I explored an interesting concept — Anagram Checker using Python 🧠💻 An Anagram is when two words contain the same letters but in a different order. For example: 👉 “Listen” and “Silent” 👉 “Heart” and “Earth” 👉 “Race” and “Care” 💡 How It Works First, the program removes spaces and converts both strings to lowercase. Then, it sorts the letters of each word and compares them. If both sorted results are the same → they’re anagrams! ✅ Example: Input → “Listen”, “Silent” Output → Yes! The strings are anagrams. Every day, I’m realizing how simple logic can solve real-world problems effectively. #Python #50DaysOfCode #CodingJourney #ProgrammingBasics #LearningEveryday
More Relevant Posts
-
📒 Python Learning Log: Mastering Iterators with enumerate() and zip() Continuing my learning journey with #DataCamp's "Python Toolbox" course. Today's module, "Playing with Iterators," was a fantastic deep dive into two incredibly useful functions: enumerate() and zip(). Here’s what I learned: 🔹 enumerate(): This function is a game-changer for for loops. Instead of manually creating and incrementing an index counter (like i = 0 and i += 1), enumerate() elegantly provides both the index and the value at the same time. 🔹 zip(): As the name suggests, this function "zips" together multiple iterables (like lists). It pairs up elements from each list based on their position, allowing you to loop over them in parallel. It's satisfying to see how these built-in tools can simplify complex tasks. On to the next module! #Python #DataScience #LearningJournal
To view or add a comment, sign in
-
I continued my Python learning journey and explored some key fundamentals: 🔹 Understanding Data Types – strings, integers, floats, booleans, and how Python handles them. 🔹 Performing Type Checking & Type Conversion – using type(), int(), float(), and str() to manage data effectively. 🔹 Practiced Number Manipulation & f-Strings – improved how I format and display results cleanly in Python. To apply what I learned, I created two small practice tasks: ✅ BMI Calculator – to calculate Body Mass Index based on user input. ✅ Tip Calculator – to split bills smartly among friends. Every small project builds confidence and improves logical thinking. 🚀 #Learning #WebDevelopment #Python #KeepGrowing #100DaysOfCode
To view or add a comment, sign in
-
🐍𝐖𝐡𝐚𝐭 𝐈 𝐥𝐞𝐚𝐫𝐧𝐞𝐝 𝐭𝐨𝐝𝐚𝐲: The difference between 𝐢𝐬 and == in python and how one tiny detail can change your program’s logic. A while back, I wrote code that compared two lists: a = [1, 2, 3] b = [1, 2, 3] print(a == b) # True print(a 𝐢𝐬 b) # False At first, I couldn’t understand why one was True and the other False. Then it clicked 💡 == checks if values are equal. 𝐢𝐬 checks if both variables point to the 𝐬𝐚𝐦𝐞 𝐨𝐛𝐣𝐞𝐜𝐭 𝐢𝐧 𝐦𝐞𝐦𝐨𝐫𝐲. They looked identical, but Python knew the difference. 𝐓𝐚𝐤𝐞𝐚𝐰𝐚𝐲: Use == when comparing data, and 𝐢𝐬 when checking object identity (like 𝐢𝐬 𝐍𝐨𝐧𝐞). Tiny lessons like this remind me how deep Python really is. 𝐐𝐮𝐞𝐬𝐭𝐢𝐨𝐧: What’s a small Python concept that once confused you but now feels obvious? #Python #LearningInPublic #Programming #DailyLearning #DataScience #CareerGrowth
To view or add a comment, sign in
-
Today I finally wrapped my head around recursion in Python. It has always felt like one of those concepts that looks simple on the surface but becomes confusing the moment you try to explain it out loud. To test my understanding, I built a simple Palindrome Checker. A palindrome is a word that reads the same forward and backward. Examples include “racecar,” “level,” and “mom.” Here’s what finally made recursion click for me: Recursion is when a function solves a problem by breaking it down into a smaller version of the same problem, then calls itself to handle that smaller piece. Each call gets the problem closer to a point where it’s easy to answer. For the palindrome logic: 1. If the word is very short, it’s automatically a palindrome. 2. If the first and last letters don’t match, then it’s not a palindrome. 3. If they do match, you remove those letters and ask the same question again on the middle section of the word. It keeps doing this until there’s nothing left to check. At that point, you have your answer. Building this small project helped me understand it in a practical way. It was one of those “now I finally get it” moments in my learning journey, and I’m glad I took the time to explore it properly. #python #recursion #learninginpublic #computerscience #codingjourney #programming #softwaredevelopment #100daysofcode #techskills #pythonlearning
To view or add a comment, sign in
-
🚀 Day 18 of my #100DaysOfCode Journey – Exploring Python Modules 🐍 Today’s focus was on Python Modules, both built-in and custom! Here’s what I practiced: ✅ Standard Library (math module) – Calculated square root, factorial, and rounded pi value. ✅ Random Module – Generated random choices and shuffled lists dynamically. ✅ Custom Module – Created my own calculator.py with add() and sub() functions, then imported it into the main file. 💡 Key Takeaway: “Modules make Python more powerful, organized, and reusable — write once, use everywhere!” #Python #100DaysOfCode #Modules #LearningJourney #SoftwareDevelopment #CodingEveryday #Math #Random #CustomModules #CodeNewbie
To view or add a comment, sign in
-
-
🚀 Day 18 of my #100DaysOfCode Journey – Exploring Python Modules 🐍 Today’s focus was on Python Modules, both built-in and custom! Here’s what I practiced: ✅ Standard Library (math module) – Calculated square root, factorial, and rounded pi value. ✅ Random Module – Generated random choices and shuffled lists dynamically. ✅ Custom Module – Created my own calculator.py with add() and sub() functions, then imported it into the main file. 💡 Key Takeaway: “Modules make Python more powerful, organized, and reusable — write once, use everywhere!” #Python #100DaysOfCode #Modules #LearningJourney #SoftwareDevelopment #CodingEveryday #Math #Random #CustomModules #CodeNewbie
To view or add a comment, sign in
-
-
⚙️ Day 3 of my 30-Day Python Mastery Challenge! Today, I explored one of the most exciting fundamentals — operators in Python! 🧮 Arithmetic, comparison, logical, and assignment operators are the tools that make Python think and calculate. Here’s a quick example I practiced: a = 10 b = 3 print("Sum:", a + b) print("Power:", a ** b) 🧠 Key Takeaways: • Operators are the core of logic and calculations in any program. • Logical operators help in decision-making. • is and in make comparisons more powerful and readable. Up next → Day 4: Input and Output in Python! #Day3 #Python #PythonLearning #LearnToCode #CodingJourney #PythonForBeginners #100DaysOfCode #DevOps #Programming #SoftwareDevelopment #CodeNewbie #WomenInTech #TechJourney #DevelopersCommunity #PythonDeveloper #DataScience #AI #MachineLearning #CodingLife #CodeDaily #JaswanthLearnsPython
To view or add a comment, sign in
-
🚀 Unlock the Power of Python: 10 One-Liners for Feature Importance! 🤖 Understanding which features drive your model's predictions is absolutely critical. This fantastic guide from Machine Learning Mastery delivers 10 powerful Python one-liners to do just that! Here’s a quick breakdown of what you'll master: 🔍 Learn how to extract importance directly from tree-based models like Random Forest and XGBoost right after fitting. 📊 Utilize model-agnostic techniques with `sklearn.inspection` to calculate permutation importance for any model. 🧠 Leverage the power of SHAP values in a single line to explain your model's output and understand global feature impact. 📈 Discover built-in methods for Linear Models and Logistic Regression to see which coefficients matter most. 💡 The article provides clear, copy-paste ready code for each method, making it incredibly easy to apply these techniques to your own projects immediately. Which method do you find most reliable for explaining your models to stakeholders? I'm curious to hear what works best in your experience! #MachineLearning #DataScience #Python Link:https://lnkd.in/dQ9d3CvX
To view or add a comment, sign in
-
-
Ever noticed how Python behaves weirdly sometimes? a = 256 b = 256 print(a is b) # True x = 257 y = 257 print(x is y) # False Wait… what? Both pairs “look” the same, but Python only thinks the first pair is identical. Here’s why 👇 Python caches small integers from -5 to 256 in memory (a mechanism known as integer interning). This means whenever you create any number in that range, Python points to the same memory address. So a is b returns True. But for numbers outside that range, Python creates new integer objects, even if the values match. That’s why x is y returns False — they are equal in value, not identical in memory. This tiny detail showcases Python’s clever optimization tricks — saving memory and speeding up simple number operations! #Python #CodingTips #DataScience #MachineLearning #PythonInternals #LearningEveryday
To view or add a comment, sign in
-
🧠 What Python’s print() taught me about communication Yesterday, while learning Python, I discovered something simple — the print() function. At first, it just felt like a way to show text on the screen. But then I explored the sep and end parameters… and it clicked. It’s just like how we communicate in real life. 😄 When we talk, the pauses between our words decide how clearly people understand us — that’s our sep. And the way we finish a sentence sets the tone — that’s our end. Example 👇 print("Hello", "World", sep="-") # Output: Hello-World print("Learning Python", end="...Keep Going 💪") # Output: Learning Python...Keep Going 💪 Even a simple print() reminded me — communication isn’t just about what we say, it’s about how we connect and how we end things. If you could add your own sep and end in daily life, what would they be? 😄 #Python #LearningJourney #StorytellingWithCode #DataScience #LifelongLearning #CodingStories
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