String Slicing using a Negative Index || Start : Stop : Step Index || What? How? || Python Tutorial

preview_player
Показать описание
This video will discuss WHAT and HOW of String Slicing using a Negative Index with fun animation and examples.

••••••••••••••••••••••••••••••••••••••••­­­•••••••••••

Video Covers:
-- Types of Indexes
-- What is a Negative Index?
-- How are strings indexed using both Positive and Negative Indexes?
-- How are Strings sliced using a Negative Index?
-- Scenario 1: No Step Size while slicing using a Negative Index
-- Scenario 2: String Slicing using a combination of Positive and Negative Index
-- Scenario 3: Slicing using the Positive Indexes and a Negative Step Size
-- Scenario 4: How to Reverse a String?

••••••••••••••••••••••••••••••••••••••••­­­•••••••••••

Watch the full Python Beginner Series here:
••••••••••••••••••••••••••••••••••••••••­­­•••••••••••

Useful Links:

••••••••••••••••••••••••••••••••••••••••­­­•••••••••••
Music Used :
––––––––––––––––––––––––––––––
––––––––––––––––––––––––––––––
••••••••••••••••••••••••••••••••••••••••­­­•••••••••••
Keywords :
Machine Learning , Machine Learning Python , Machine Learning Tutorials , ML , Python Tutorial , Machine Learning with Python , Machine Learning tutorial for beginners , How to start Machine Learning , Basics of Machine Learning , ml , Machine learning with Python , Tips and tricks in Python , python programming , python tutorials for Beginners, variables and data types in Python , is python case sensitive , computer programming , How to earn more money , Python Strings , immutable , strings are array , source code , GitHub , immutable object , strings in python, python tutorials for beginners , python strings array , python string advanced , python string literals , string indexing , negative index , reverse index , indexing notation , string indexing out of range error , reverse a string in Python , String operations in Python , Python string programs , string concatenation in python , string functions in Python , python strings , python string code , python code , string slicing in python , string positive index , string negative index , how to reverse a string , reverse string in python , how to be rich , Make money using Python , make money using coding
Рекомендации по теме
Комментарии
Автор

This is by far one of the most helpfull things I've ever watched in yt. Thank you so much!

Mo-ipmm
Автор

Not even a single doubt thank to you mam
After too much video's i reach here and stops here❤❤❤

AradhanaGupta-pd
Автор

Good editing & explained several scenarios, thanks!!

ishurao
Автор

Very good explanation and nice editing

sri.teju.
Автор

very helpful clear and easy haven't found any resources regarding that, thanks

abdullahjama
Автор

At 4:35 as stop index is mentioned as 13 answer should be "no" right instead of "noi"

radhakrishnana
Автор

@4:46 - How come the C index as 8 ?? L-0, e-1, a-2, r-3, space - 8 and C-9

abhilashpandey
Автор

Thank you so much, you explain so much better than my teachers!

hedaboss
Автор

Could you please try to complete the statistics

santoshdhabekar
Автор

At 5.53 I think default stop index would be 1 index ahead of first index towards the left side(ie. out of range) otherwise output won't include value of first index...besides very nice eg
a='LEARNING CHAMPIONS'
print(len(a))
print(a[::-1])
print(a[-1:-19:-1])
print(a[17:-19:-1]) output for all 3-SNOIPMAHC GNINRAEL

sanjitbansal
Автор

Thank you very much for sharing your knowledge, the video was very clear and objective directly to the topic, good video!.

md
Автор

What is the output of the mystring[0:-4]? Is it an error? why it still valid? Wouldn’t the direction contradict itself?

siioiheh
Автор

b = "Hello, World!"
print(b[-2:-5:-4]) can you explain this

lakshya
Автор

Upload more video it would be helpful for learning

hamsasingaravelu
Автор

With this video, I'm done struggling to understand list and String slicing

mackensonreginaldmichel
Автор

Buddy, when slicing a negative index the negative start index does not always have to be greater than the negative stop index. If the negative start index is smaller than the negative stop index python will simply run the string from left to right. Also you don't have to add a step index in such a case.

kennykamei