🚀 Day 17 – Anagram Check in Python 💻 Today’s task: Write a program to check whether two strings are anagrams. 🔍 Two strings are anagrams if they contain the same characters with the same frequency, just arranged differently (e.g., *listen* & *silent*). 📌 This exercise helped me understand: • String manipulation 🧩 • Character frequency comparison 🔍 • Sorting and logical thinking ⚙️ ✨ A simple concept, but very useful in problem-solving and interviews. 📈 Learning and improving consistently every day. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips
Python Anagram Check
More Relevant Posts
-
Just solved a classic DSA problem: Valid Parentheses Check using a stack! This problem is a great example of how a simple concept like a stack can help solve real interview-level questions efficiently. In the video, I walk through the logic step-by-step and implement it in Python in a clean and beginner-friendly way. If you're preparing for coding interviews or strengthening your DSA fundamentals, this one is definitely worth your time. 🎥 Check out the full explanation in the given link. Would love to hear how you approached this problem or if you have alternative solutions! #datastructures #algorithms #python #codinginterview #softwareengineering #learning #dsa https://lnkd.in/g8AdYW6J
2. Check for Balanced Parentheses (Python) | DSA 💻 - PRACTICE PROBLEM
https://www.youtube.com/
To view or add a comment, sign in
-
Python Clarity Series – Episode 25 Topic: Mutable vs Immutable Function Behavior 📌 Why did my list change after function call? def modify(lst): lst.append(100) a = [1, 2] modify(a) print(a) Output: [1, 2, 100] 👉 Lists are mutable → changes reflect outside Now: def modify(x): x = x + 10 a = 5 modify(a) print(a) Output: 5 👉 Integers are immutable → no change outside 💡 Rule: Mutable → changes persist Immutable → changes don’t This confusion causes logic errors. #PythonBasics #FunctionConcepts #StudentClarity #python #clarity
To view or add a comment, sign in
-
-
Python Series — Day 1 Answer + Day 2 Question 🚀 🧠 Day 2 Question What will be the output of this code? a = [1, 2, 3] b = a b.append(4) print(a) Options: A. [1, 2, 3] B. [1, 2, 3, 4] C. Error D. Depends on Python version Drop your answer 👇 (And don’t Google 😄) Answer tomorrow 🚀 #Python #CodingChallenge #DataEngineering #LearningInPublic #Tech
To view or add a comment, sign in
-
-
Two pointers: the pattern behind many 'easy' solutions 💡 If your data is sorted (or can be sorted), two pointers might be the optimal move. Why this matters: - How to spot two-pointer opportunities and explain the invariant. This topic appears repeatedly in interviews and real projects, so depth matters.. 💬 Want a 'two pointers' problem set with difficulty progression? #dsa #interviewprep #algorithms #python #coding
To view or add a comment, sign in
-
-
The Pearson correlation coefficient, is a statistical measure that quantifies the strength and direction of the linear relationship between two continuous variables, ranging from -1 to +1. A value of +1 implies a perfect positive linear relationship, -1 a perfect negative relationship, and 0 no linear correlation. The following video shows how to setup envoirnment for video (.mp4) or animation of the coefficient using python script and Jupyter Notebook. #Python #Machinelearning #Scripting
To view or add a comment, sign in
-
🧠 Python Logic Check — Quick Challenge Consider the following snippet: x = 10 x += x == 10 print(x) At first glance, it looks straightforward — but it tests your understanding of how Python handles boolean expressions. 💡 Question: What will be the output? A) 10 B) 11 C) True D) Error 📌 Small details like this often separate beginners from experienced developers. 💬 Drop your answer in the comments — and explain your reasoning if you can. #Python #SoftwareEngineering #CodingChallenge #DeveloperMindset #Learning
To view or add a comment, sign in
-
-
Python Series — Day 3 🧠 Let’s level it up a bit 👇 What will be the output of this code? def modify_list(lst): lst.append(4) a = [1, 2, 3] modify_list(a) print(a) Options: A. [1, 2, 3] B. [1, 2, 3, 4] C. Error D. None Think carefully 👀 (Hint: It’s not about functions… it’s about how Python handles data) Drop your answer 👇 Answer tomorrow 🚀 #Python #CodingChallenge #LearningInPublic #DataEngineering #Tech
To view or add a comment, sign in
-
-
🚀 Day 2 of #100DaysOfCode Today I learned how to check whether a number is a Palindrome using Python 🐍 🔍 Problem: A number is called a palindrome if it reads the same forward and backward (like 121, 1331). 💡 Approach: Reverse the number using a loop Compare it with the original number 🐍 Code: num = int(input("Enter a number: ")) original = num reverse = 0 while num > 0: digit = num % 10 reverse = reverse * 10 + digit num = num // 10 if original == reverse: print("Palindrome Number") else: print("Not a Palindrome Number") 📌 Key Learning: Learned how loops and basic logic can solve interesting problems. 💬 Next: Armstrong Number 🔥 #Python #Coding #100DaysOfCode #Learning #CSE
To view or add a comment, sign in
-
-
👉 We all use quotes in Python… But do you know when to use: ' vs " vs '''? Most beginners just use them randomly. Here’s the simple rule 👇 # Single quotes → simple text name = 'Ali' # Double quotes → when text has ' msg = "It's a good day" # Triple quotes → multi-line / docstrings text = '''This is multi-line text''' That’s it. No confusion. No overthinking. --- 💡 Good code is not just about working… It’s about being clear and readable. --- Do you follow this… or just use quotes randomly? #Python #LearnPython #CodingBasics #ProgrammingConcepts #PythonTips #CodeClarity #CleanCode #LearnWithMe #strings
To view or add a comment, sign in
-
-
Excited to Share My New Python Library: 𝗽𝘆𝗶𝗺𝗴𝟮𝗮𝘀𝗰𝗶𝗶 I just released 𝘃𝟬.𝟱 of pyimg2ascii, a Python library I built to convert images into ASCII art. I created it to experiment with image processing and make coding a bit more fun and creative. 1. 𝗽𝗶𝗽 𝗶𝗻𝘀𝘁𝗮𝗹𝗹 𝗽𝘆𝗶𝗺𝗴𝟮𝗮𝘀𝗰𝗶𝗶 You can try it yourself and see your images come alive as ASCII art! I’d love to hear your feedback and see what you create. Check it out here: https://lnkd.in/g86iPSU4 #Python
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