Diving deeper into Python Strings 🐍 Today’s class focused on working with strings and understanding how Python handles text data. Key learnings from the session: • String slicing using positive and negative indexing • Extracting substrings with custom step values • Using len() to find the length of strings • Handling empty strings and undefined variables • Understanding and fixing NameError and SyntaxError • Using the count() method to find occurrences of characters, words, and patterns in a string • Applying string operations on real examples like sentences and date formats These concepts are small but powerful and play a big role in text processing and data handling. Enjoying the process of learning by practicing and making mistakes along the way 🚀 #Python #StringManipulation #LearningPython #Codegnan #ProgrammingJourney #Consistency Pooja Chinthakayala
Mastering Python Strings with Indexing and Operations
More Relevant Posts
-
🚀 Python Learning – Day 17 Today I explored more NumPy concepts related to data structure and layout: Array shape Reshaping arrays Understanding axis These are important when working with real datasets. 🔹 Shape of an Array import numpy as np arr = np.array([[1, 2, 3], [4, 5, 6]]) print(arr.shape) 🔹 Reshaping an Array new_arr = arr.reshape(3, 2) print(new_arr) 🔹 Using Axis print(arr.sum(axis=0)) # column-wise print(arr.sum(axis=1)) # row-wise Understanding shape and axis helps avoid mistakes in data analysis. Moving forward with NumPy basics. 🔥 #Python #NumPy #DataAnalytics #LearningJourney #DailyLearning
To view or add a comment, sign in
-
🐍 Day 3 — Your First Python Program Day 3 of #python365ai 🧑💻 Let’s write your first Python program. The most famous beginner line: print("Hello, world!") What’s happening here? print() is a built-in function It tells Python to display text on the screen That’s it — you’ve written Python code 🎉 📌 Why this matters: Every program is built from small instructions like this. Today is about confidence, not complexity. 📘 Practice task: Try printing your name or a short message. Tomorrow: understanding Python syntax and how Python reads your code. #python365ai #HelloWorld #PythonBasics #CodingJourney #LearnPython #TechEducation
To view or add a comment, sign in
-
-
Understanding Strings & Immutability As I continue building my Python fundamentals, I have been learning how strings work and why they are immutable in Python. - Strings are sequences of characters enclosed in single or double quotes both work the same in Python. - Learned how to create multi-line strings, handle quotes inside strings, and check for characters using the in operator. - Explored string length using len() and accessed characters through indexing (including negative indexing). - An important concept: strings are immutable, meaning individual characters cannot be changed once a string is created only reassigned. Understanding string behaviour is essential when cleaning, validating, and analyzing text-based data. #PythonBasics #StringsInPython #Immutability #DataAnalyticsJourney #LearningInPublic #Upskilling
To view or add a comment, sign in
-
#Day19 of my Data Science and Machine Learning journey at Skill Shikshya Today I went deeper into exception handling in Python. This is one of those topics people ignore until their code breaks in real projects. What I learned today: ✔️ Try and except blocks to handle runtime errors safely ✔️ Raise to create custom exceptions when something goes wrong ✔️ Why proper error handling makes programs more stable and easier to debug If you do not handle errors properly, your program will crash at the worst possible time. Learning this now is necessary, not optional. Consistency over speed. #100DaysOfLearning #Python #DataScience #MachineLearning #SkillShikshya #LearningJourney
To view or add a comment, sign in
-
-
🐍 Day 8 — Lists in Python Day 8 of #python365ai 📋 A list is an ordered collection of items in Python. It allows you to store multiple values in a single variable. Example: fruits = ["apple", "banana", "orange"] Lists are: Ordered Changeable Able to hold mixed data types 📌 Why this matters: Lists are everywhere — from storing datasets to handling user inputs and model outputs. 📘 Practice task: Create a list of your favourite three foods and print it. #python365ai #PythonLists #PythonBasics #LearnPython #DataScience #Coding
To view or add a comment, sign in
-
-
Day 3 of my Python learning journey 🐍✨ Today I explored some powerful concepts: 🔹 Type casting — converting between data types for flexibility 🔹 Strings — working with text data 🔹 String slicing — extracting specific parts of a string 🔹 String methods — built-in functions to manipulate text easily It’s amazing how these features make Python so versatile. From formatting outputs to handling user input, I can already see how useful this will be in real projects. 👉 For those experienced in Python: what’s your favorite string method and why? #Python #LearningJourney #Upskilling #Programming #CareerGrowth
To view or add a comment, sign in
-
-
Day 10 / 100 – Strings in Python Today I learned about strings in Python, which are used to represent and manipulate text data. A string is a sequence of characters and is one of the most commonly used data types in Python. Strings are immutable, meaning their values cannot be changed directly. Common string operations include: Finding the length of text Converting text to upper or lower case Replacing parts of a string Splitting and joining text Strings are widely used in: Text processing and formatting Reading and writing files Handling user input Data cleaning and preprocessing in data science #100DaysOfDataScience #Day10 #PythonLearning #StringsInPython #PythonBasics #DataScienceJourney #LearningInPublic #CodingLife
Day 10 / 100 – Strings in Python Today I learned about strings in Python, which are used to represent and manipulate text data. A string is a sequence of characters and is one of the most commonly used data types in Python. Strings are immutable, meaning their values cannot be changed directly. Common string operations include: Finding the length of text Converting text to upper or lower case Replacing parts of a string Splitting and joining text Strings are widely used in: Text processing and formatting Reading and writing files Handling user input Data cleaning and preprocessing in data science #100DaysOfDataScience #Day10 #PythonLearning #StringsInPython #PythonBasics #DataScienceJourney #LearningInPublic #CodingLife
To view or add a comment, sign in
-
-
🚀 Learning Python | Topic: Tuples While learning Python, I explored Tuples — a simple yet powerful data structure. 🔹 What is a Tuple? A tuple is an ordered and immutable collection of elements. t = (1, 2, 3) 🔹 Key Points: ✔️ Ordered ✔️ Allows duplicates ✔️ Immutable (cannot be changed) ✔️ Faster than lists 🔹 Access & Slice t = (10, 20, 30, 40) print(t[1]) # 20 print(t[1:3]) # (20, 30) 🔹 Common Methods count() index() 📌 Building a strong Python foundation step by step. #Python #LearningPython #DataStructures #Beginner #AI #ML
To view or add a comment, sign in
-
-
Strengthening Analytics Foundations – Day IV Today’s learning focused on strings in Python—creating and accessing strings, performing string operations, and understanding indexing (positive and negative) and slicing. A useful reminder: in real-world datasets, much of the complexity lies in text data—names, locations, identifiers, and codes. Clean, well-handled strings are essential for accurate analysis, matching, and reporting. #DataAnalytics #Python #DataQuality #PublicSector #ContinuousLearning
To view or add a comment, sign in
-
Day 51 of Python | NumPy – Handling Missing Values (NaN) Today I explored how to detect missing values using NumPy 🔍 ✔️ np.isnan() helps identify NaN values in numerical data ✔️ Very useful in data cleaning & preprocessing ✔️ A must-know concept for Data Science & ML pipelines #51dayofPython #Python #Fullstackdeveloper
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