Simple Python Tutorial on how string works and some manipulation

Опубликовано: 19 Август 2026
на канале: Earth Walker
154
4

Please like the video if it helps you :)

Simple python example and short video to illustrate how characters are stored in "string". ". It uses very simple example to focus on how to retrieve a character from a string, how they are reference using position and how we can use len() function to get the number of characters in the string. It also illustrate how we could perform string slicing by using the 3 parameters (start position, stop before position, step). It also shows 2 methods of using a "for" loop
to traverse (loop) through a string.It also show some common methods of string (.upper(), .count(), .isupper(), .replace()).

We sometimes need to analyse a string and perform many manipulation of the string. In order to do that, we need to understand how
to slice, traverse and use some string methods. These simple example are focus on understanding the mechanics of them since that
is essential before being able to come up with soltuions on string manipulation

== Syntax of getting character from string ==
name_of_string[position]

== Syntax of string slicing ==
name_of_string[start position : stop before position : step]
negative value in position means counting from the back. Eg -1 means last position
negativeve value in step means direction is from right to left.

You can use the link below to see some related videos
(Apart from watching the video, you can also show more info to read on the explanation.)
== More on how range() works ==
   • Simple Python Tutorial to introduce range(...  

Hope these inputs are helpful for you.

0:00 - Introduction to "string", characters and position
0:38 - len() to find out number of characters (length) in the string
01:02 - "string" slicing. Start pos, stop before, step
04:50 - Traversing (looping) through a string
07:29 - Methods of string. upper(), count(), isupper(), replace()


Keywords:
#python
#string
#manipulation
#stringmanipulation
#len()
#character
#position
#slice
#slicing
#stringslicing
#traverse
#loop
#method
#method
#short
#simple
#easy
#beginner
#tutorial
#basic
#upper()
#count()
#isupper()
#replace()
#upper()
#.count()
#.isupper()
#.replace()