Day 5 of My #30DaysOfPython Challenge 🌟 Topic: Strings & String Slicing 🧵🐍 Today I explored one of the most interesting parts of Python — Strings! They’re not just text — they’re sequences of characters, and Python gives us powerful ways to manipulate them. ✨ Here’s what I learned: 🔹 Strings can be created using single, double, or triple quotes. 🔹 They are immutable — you can’t change them directly. 🔹 Slicing helps extract parts of a string easily! 💡 Takeaway: Slicing makes working with text super flexible — whether it’s reversing a string, extracting initials, or trimming unwanted parts. Next up 👉 Day 6: String Methods and Formatting! #Python #30DaysOfCode #PythonChallenge #CodingJourney #LearningInPublic #StringsInPython #WomenInTech #DataScience #codewithharry
"Exploring Strings and Slicing in Python: Day 5 of #30DaysOfPython"
More Relevant Posts
-
I worked on both Linear and Multiple Linear Regression models in Python using scikit-learn. Here’s what I did 👇 📦 Imported all the required libraries 📊 Prepared and visualized the dataset 🧠 Created & trained the model 📈 Predicted values using both the model and the manual formula ⚙️ Checked coefficients and intercepts 🎞️ Added data visualization to understand how the model fits the data Every day, the concepts feel clearer — from just running code to actually understanding why it works 💪 🎯 Tools used: 👉 Python 👉Pandas 👉Scikit-learn 👉Jupyter Notebook #MachineLearning #Python #DataScience #AI #StudentJourney #LinearRegression #MultipleLinearRegression #LearningByDoing
To view or add a comment, sign in
-
Day 12 – STRINGS IN PYTHON 🐍✨ In today’s TechRise Cohort 2 class, I explored one of the most exciting parts of Python — Strings! I learned how to: 🔹 Find the length of a word using len() 🔹 Slice and access specific letters 🔹 Change text cases (upper, lower, title) 🔹 Replace words or letters 🔹 Combine (concatenate) strings 🔹 Format text dynamically using f-strings Here’s a quick example I enjoyed: x = "House" y = "Hold" z = x + y print(z) X = 20 a = f"I have {X} naira" print(a) Every new concept in Python makes coding feel more exciting and creative! 🚀 You can run this code and tell me what you got in the comment section. #TechRiseCohort2 #Python #AI #MachineLearning #Coding #DigitalSkills #LearningJourney
To view or add a comment, sign in
-
-
#Day20 #100DaysOfCode 🧩 Problem: Given a matrix where each row and column is sorted in increasing order, determine whether a given element x exists in the matrix. 💡 Approach: Instead of searching every element, I used an optimized O(n + m) approach — starting from the top-right corner and moving left or down based on comparisons. #100DaysOfCode #Day20 #Python #CodingChallenge #DataStructures #Algorithms #Matrix #SearchAlgorithm #ProblemSolving
To view or add a comment, sign in
-
-
Ever needed to sync multiple lists in Python without writing clunky loops? The zip() function is a clean, elegant way to pair elements from multiple iterables into tuples. I use it often when aligning datasets or structuring input-output mappings—it’s a small trick that makes a big difference. If you're preparing for interviews or just want to write cleaner code, this is one to keep in your toolkit. 💡 Save this tip. Practice it. And when you're asked to "optimize your logic" you’ll have the answer ready. 👉 For more bite-sized Python insights and AI-powered learning, visit itlearning.ai and level up your tech journey. #itlearningai #PythonTips #TechInterviewPrep #DeveloperLife #LearnWithAI #CodingJourney #PythonForBeginners #ZipFunction #CodeSmart #AceYourTechJourney #PythonDev #DailyDevDose #InterviewReady
To view or add a comment, sign in
-
-
Just wrapped up an interesting case study on Correlation Analysis in Python 🎬 Explored how different numerical features relate to each other using Pandas, NumPy, and Seaborn. Small insights like these help build a stronger foundation for data-driven decision making! Check it out on GitHub: https://lnkd.in/gZW-fEhn #Python #DataAnalysis #EDA #Correlation #DataVisualization
To view or add a comment, sign in
-
-
Day 11 – PYTHON VARIABLES 🧠🐍 (My Techrise cohort 2 journal) Today in my TechRise Cohort 2 journey, I learned about Python Variables — the building blocks of every program! Variables are like containers that hold data, and I explored different data types such as integers, floats, strings, booleans, and even complex numbers. I also practiced data type conversion in Python using simple code examples. Here’s a quick snippet from my learning: a = 10 k = float(a) p = complex(a) print(k) print(p) Every new lesson makes Python more exciting and practical for real-world AI and Machine Learning applications. 🚀 #TechRiseCohort2 #Python #AI #MachineLearning #CodingJourney #DigitalSkills
To view or add a comment, sign in
-
-
📌 Day 4 of My #50DaysOfPython Challenge 🐍 Today’s task was to check whether a given string is a Palindrome ✅ A palindrome is a word that reads the same forwards and backwards — like level, madam, racecar. This helped me improve: 🔹 String manipulation 🔹 Case-insensitive comparison 🔹 Logic building in Python 🧪 Example: ➡️ Input: Level ✔️ Output: The string is palindrome ✅ Learning one step at a time, improving every day! 💪✨ More challenges ahead 🚀 #Python #50DaysOfPython #CodingChallenge #ProgrammingJourney
To view or add a comment, sign in
-
Nesting three loops and translating that into a single list comprehension can be a little bit tricky. Today I tackled a fun Python challenge using list comprehensions, and I found it super interesting! I generated all combinations [i, j, k] within given ranges where the sum isn’t equal to a target value n. It really stretched my thinking about nested loops and concise Python syntax. Example output (for x=1, y=1, z=2, n=3): [[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0], [1, 1, 0], [1, 0, 1], [0, 1, 1]] If you’ve solved similar combinatorics or Python list comprehension problems, I’d love to hear your approach! #Python #Coding #LearningInPublic #100DaysOfCode #ProblemSolving #ListComprehension #BeginnerToBuilder
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
-
Escape Characters in Python Strings Mastering \n, \t, and Quotes Today I revisited one of the most underrated yet powerful features in Python escape characters. Whether you're formatting output, handling multi-line strings, or embedding quotes, escape sequences like \n, \t, and \" make your strings clean and expressive. 🔹 \n → Inserts a newline 🔹 \t → Adds a tab space 🔹 \' or \" → Escapes quotes inside strings 🔹 Triple quotes (""") → Handle multi-line strings and embedded quotes effortlessly #Python #CodingTips #EscapeCharacters #DevJourney #LinkedInLearning #CodeNewbie #100DaysOfCode #JehosaphatCodes #datascience #graduateschool
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