The Basics of Strings Focus: String Properties & Indexing Day 3 was all about Strings. I thought I knew what a "word" was, but Python sees things a bit differently. 🧐 What clicked today: Case Sensitivity: Python is picky! Variable and variable are two different citizens. Slicing: String Methods: Indexing: Learning that counting starts at 0 was a bit of a brain-bender at first, but it makes so much sense now. Immutability: This was the big "Aha!" moment—knowing that once a string is created, you can’t just reach in and change a character. You have to build a new one. It’s these small details that make the difference between code that runs and code that crashes. 💻 #Strings #CodingJourney #PythonLearning #ContinuousGrowth #PythonDay3
Python Strings: Case Sensitivity, Slicing, Indexing, and Immutability
More Relevant Posts
-
🚀 Day 34 – LeetCode Journey Today’s problem: Isomorphic Strings ✔️ Solved using a concise Python approach with sets ✔️ Compared unique character patterns efficiently ✔️ Achieved clean and optimized code 💡 Key Insight: By comparing the lengths of set(s), set(t), and set(zip(s, t)), we can quickly verify if both strings follow the same mapping pattern — ensuring a one-to-one relationship. Sometimes, the simplest solutions are the most powerful ✨ Continuing to learn, simplify, and grow every day 🔥💪 #LeetCode #Day34 #Python #Strings #Hashing #ProblemSolving #CodingJourney #100DaysOfCode
To view or add a comment, sign in
-
-
I built my own simple RAG (Retrieval-Augmented Generation) system using React, Flask, and Python: ✨ Features: A landing page where I added a block of information. That information is saved as a PDF and extracted using PyMuPDF. Users can ask questions, and the system retrieves answers using Chroma DB vectorization and chunking. 📹 Check out the demo video below 👇 This project was a great hands-on way to understand RAG workflows, vector databases, and PDF text extraction. #Python #ReactJS #Flask #RAG #ChromaDB #PyMuPDF #AI #WebDevelopment
To view or add a comment, sign in
-
Many people learn Python and Pandas as tools. But the real transformation happens when you learn Pandas as a way of thinking. Because data isn’t just “numbers in a table”—it’s evidence. And evidence has shape, structure, friction, and sometimes silence (missing values, messy formats, inconsistent categories). When you master core Pandas operations, you stop merely processing datasets… and you start understanding systems. #Python #Pandas #LakkiData #LearningSteps
To view or add a comment, sign in
-
-
Machine Learning Graph Data using pygal #machinelearning #datascience #graphdata #pygal Pygal is a simple yet powerful Python library for generating beautiful SVG charts. It allows users to create a wide variety of static and animated visualizations, including bar charts, pie charts, line charts, and radar charts. https://lnkd.in/gn8-hBUW
To view or add a comment, sign in
-
📌 Problem: Reverse Vowels of a String 💡 Approach: Used the two-pointer technique to reverse only the vowels in the string. Initialize one pointer at the beginning and one at the end. Move both pointers inward until vowels are found, then swap them. Continue this process until both pointers meet. ⚙️ Key Insight: Use a set for fast vowel lookup (O(1)) Two-pointer approach avoids extra space for storing vowels separately ⏱️ Time Complexity: O(n) 📦 Space Complexity: O(n) (due to string → list conversion) 📚 What I learned: Efficient string manipulation using two pointers Optimizing lookups with hash sets #LeetCode #DSA #Algorithms #Coding #ProblemSolving #Python #TwoPointers #InterviewPreparation #CodingJourney
To view or add a comment, sign in
-
I've been using AI agents every day for months without actually understanding how they work. A cracked friend built a tool that breaks the whole thing down. No frameworks. ~60 lines of Python. Turns out an agent is just a function. Tools are a dict. Memory is a tool that writes to a file. That's it. Went through all 9 lessons in one sitting. If you've been using LangChain or CrewAI without knowing what's underneath, honestly just start here first. #AIAgents #SoftwareEngineering #BuildingInPublic
To view or add a comment, sign in
-
🐍 Week 17 – Refining My Python Skills 🐍 This was a shorter week due to some personal commitments, but I focused on implementing the quicksort algorithm. Like last week with merge sort, I wanted to deeply understand how quicksort works. Here are the key concepts I worked on: - Implemented a separate partition function to split around a pivot. In my approach, I used three buckets (left, middle, right) to handle duplicates more cleanly and avoid unnecessary comparisons. - Created a quick_sort function to implement the main algorithm, recursively sorting the partitions until the base case was met. After practicing merge sort, quicksort felt more intuitive, and the concepts connected more easily. In Week 18, I plan to practice implementing the Luhn Algorithm. #Python #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
Day 3 of #50DaysDSA Problem Solved: Reverse Vowels of a String Today’s problem focused on efficient string manipulation using the two-pointer technique, a fundamental approach in algorithm design. Problem Statement: Given a string, reverse only the vowels while keeping all other characters in their original positions. Approach: Used two pointers (start and end) to traverse the string Identified vowels using a set for constant-time lookup Swapped vowels in-place while skipping non-vowel characters Continued until both pointers met Complexity Analysis: Time Complexity: O(n) Space Complexity: O(n) (due to string-to-list conversion in Python) Key Takeaway: This problem reinforces how a well-applied two-pointer strategy can lead to clean and optimal solutions without unnecessary data structures. #DSA #DataStructures #Algorithms #Python #SoftwareDevelopment #CodingPractice #Leetcode75 LeetCode Dhanraj Sahu
To view or add a comment, sign in
-
-
📌 Problem: Merge Strings Alternately 💡 Approach: Used a simple two-pointer / iteration technique to merge both strings character by character. First, iterate up to the minimum length of both strings and append alternately. Then, append the remaining characters from the longer string. ⚙️ Key Insight: Handle unequal string lengths separately Avoid index out-of-bounds by iterating till min(len(word1), len(word2)) ⏱️ Time Complexity: O(n + m) 📦 Space Complexity: O(n + m) merg 📚 What I learned: String manipulation efficiently Handling edge cases when lengths differ #LeetCode #DSA #Coding #ProblemSolving #Python #SoftwareDevelopment #CodingJourney
To view or add a comment, sign in
-
Starting something new always feels overwhelming. The hardest part isn’t advanced concepts but it is knowing where to start and what actually matters. So we are sharing this simple Python cheat sheet. It covers everything from setup to core fundamentals like syntax, data types, control flow, functions. Basically the things you’ll keep coming back to as you learn. If you're just starting out or revising the basics, this should save you a lot of time and confusion. More practical content coming soon. #PythonForBeginners #DataScienceJourney #LearnPython #CodingBasics #EdTech #CareerGrowth #TechSkills
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