🚀 Day 5 – Exploring String Methods in Python Continuing my learning journey with @Global Quest Technologies! Today’s session focused on working with strings and their powerful built-in methods: 🔹 strip() and other essential string methods like split(), join(), replace() 🔹 Case conversion methods – upper(), lower(), swapcase(), title(), capitalize() 🔹 String checking methods – startswith(), endswith() 🔹 String formatting techniques 🔹 Program to accept a string and find its reverse These concepts are very useful for handling and manipulating text efficiently in Python. ✨ Each day brings new knowledge and skills! #Python #LearningJourney #Programming #Coding #Growth
Python String Methods and Techniques
More Relevant Posts
-
🚀 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
-
-
Day 8/30 – Python Coding Challenge 🐍 📌 LeetCode Problem 11: Container With Most Water 💡 Problem: Find two lines that form a container holding the maximum water. 🧠 What I learned: • Two-pointer technique • Optimizing brute force (O(n²) → O(n)) • Smart decision making using minimum height 💻 Example: Input: [1,8,6,2,5,4,8,3,7] Output: 49 🚀 Insight: By moving the pointer with smaller height, we can efficiently maximize the area. Learning to think smarter, not harder 💪 #30DaysOfCode #Python #LeetCode #TwoPointers #CodingChallenge #ProblemSolving
To view or add a comment, sign in
-
-
Tried learning 𝒓𝒆𝒄𝒖𝒓𝒔𝒊𝒐𝒏 in Python today 🤓 At first, this line was confusing: 𝘀[-𝟭] + 𝗿𝗲𝘃𝗲𝗿𝘀𝗲_𝘀𝘁𝗿(𝘀[:-𝟭]) Step by step break kiya aur finally it clicked 💡 Basically, last character is picked and combined with the reversed remaining string. Still practicing, but this made me realize coding isn’t just about syntax — it’s about building the right way of thinking 🧠 How do you usually approach recursion problems? Any tips for beginners? 💡 #Python #Recursion #CodingJourney #LearningInPublic #WomenTech
To view or add a comment, sign in
-
-
💻 Day 2 of #100DaysOfCode Today I continued learning Python basics 🐍 Topics I covered: Type Conversion (string, int, float) Arithmetic Operators Comparison Operators Logical Operators Assignment Operators I also built small programs using these operators to understand how they work in real situations. Taking it step by step and focusing on strong basics. See you all tomorrow with new learnings and more progress 🚀 #Python #100DaysOfCode #CodingJourney #Learning #Consistency
To view or add a comment, sign in
-
🔁 For Loop vs While Loop in Python — Simple Difference Understanding loops is one of the first steps in mastering Python. Here's a quick comparison: ✅ For Loop Used when the number of iterations is known. Example: Iterating through a list, string, or range. for i in range(5): print(i) ✅ While Loop Used when the number of iterations is unknown and depends on a condition. i = 0 while i < 5: print(i) i += 1 📌 Key Difference for loop → iterate over sequence while loop → run until condition becomes False 💡 Tip: Use for loops for cleaner and readable code when working with collections. Use while loops when waiting for a condition (like user input). #Python #Coding #Programming #PythonBasics #LearnPython
To view or add a comment, sign in
-
This year I'm writing a new #Python series, and my first article is now live on roadmap.sh! "Python Division: Operators, Floor Division, and Examples" explores some of the most commonly used (and sometimes misunderstood) parts of Python division, including: ✨ The difference between / and // ✨ Practical, real-world examples like rate calculations and pagination ✨ Common pitfalls such as the dreaded ZeroDivisionError 😱 I'm looking forward to sharing more insights through this series and diving into some of the stranger things that can happen in Python. 👀 If you're learning Python or looking to sharpen your fundamentals, stay tuned! 🔗 https://lnkd.in/eMgm6W6C #Programming #Coding #SoftwareDevelopment #LearnToCode
To view or add a comment, sign in
-
-
💻 Exploring Recursion in Python 🚀 Today I worked on implementing two classic recursive problems — Factorial and Fibonacci — in Python. At first, small mistakes like typos and function naming issues slowed me down, but debugging them helped me understand recursion much better. 🔁 Key Learnings: • Importance of base conditions in recursion • How recursive calls build up the final result • Debugging is where real learning happens Seeing the Fibonacci output finally work (233 for n=13) was a satisfying moment! 🙌 Step by step, getting closer to mastering problem-solving and logic building. #Python #CodingJourney #Recursion #LearningByDoing #Debugging #100DaysOfCode #DeveloperLife #Programming #TechSkills
To view or add a comment, sign in
-
-
🚀 Day 23 – Second Non-Repeating Character (Python) 💻 Today’s task: Find the second non-repeating character in a string. 🔍 The goal is to identify the second character that appears only once in the given string. 📌 This exercise helped me understand: • Character frequency counting 🔢 • String traversal 🔁 • Handling edge cases efficiently ⚠️ ✨ A slightly advanced twist on a common problem that improves logical thinking. 📈 Learning consistently and strengthening problem-solving skills every day. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips #DataStructures
To view or add a comment, sign in
-
-
Day 4/50 of Coding Challenge 💻 🚀 Python I practiced - String Processing Logic Today I practiced an interesting Python concept: Finding the alphabetically smallest and largest words from a sentence without using built-in functions. 💡 Key Learning: ◾ How to build words character by character ◾ why we must check both space and end of string ◾ Common mistake: Missing the last word if we only check for spaces 🧠 Important Logic: if char == " " or i == len(s)-1: This ensures the last word is also processed correctly. #Python #Nxtwave #CCBP #ProblemSolving #StudentDeveloper
To view or add a comment, sign in
-
-
🎮 Let’s Play Rock–Paper–Scissors… but with Python! 🐍✊✋✌️ I recently built a simple Rock–Paper–Scissors game using Python, and it was a fun way to strengthen my fundamentals while creating something interactive. 💡 What I focused on: - Taking user input - Using conditional logic (if-else) - Generating random choices for the computer - Keeping the game loop running It might look simple, but projects like this really help in understanding how logic works in real programs. 🚀 This is just the beginning of my Python journey, and I’m excited to keep building more such projects! 👉 Try it out (mentally 😉): Rock, Paper, or Scissors… what’s your move? I’d love your feedback — how is it? And what should I build next? #Python #CodingJourney #BeginnerProjects #LearnToCode #Programming #100DaysOfCode
To view or add a comment, sign in
Explore related topics
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