String Slicing using a Negative Index || Start : Stop : Step Index || What? How? || Python Tutorial
HTML-код
- Опубликовано: 11 ноя 2024
- This video will discuss WHAT and HOW of String Slicing using a Negative Index with fun animation and examples.
Please subscribe to our channel for more such videos - / @learningchampion
•••••••••••••••••••••••••••••••••••••••••••••••••••
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?
•••••••••••••••••••••••••••••••••••••••••••••••••••
String Indexing | Why? How? || Python Tutorial for Beginners - • String Indexing || Why...
String Slicing || Start : Stop : Step Index || What? How? || Python Tutorial for Beginners - • String Slicing || Star...
Watch the full Python Beginner Series here:
• Python Basics & Coding...
•••••••••••••••••••••••••••••••••••••••••••••••••••
Useful Links:
-- Python Programming: A Beginner's Guide to Learn Python - amzn.to/465sgau
-- Automate the Boring Stuff with Python, 2: Practical Programming for Total Beginners - amzn.to/3t52jsP
-- Python All-in-One for Dummies - amzn.to/3Pvcqi9
-- Python: The Complete Reference - amzn.to/3rgw5KR
-- Data Science From Scratch - amzn.to/3LyCkAz
-- Python Data Science Handbook: Essential Tools for Working with Data - amzn.to/3ZvUKrt
-- Practical Statistics for Data Scientists - amzn.to/3t6UuD7
-- Apple 2023 MacBook Air - amzn.to/3ZvxR7o
-- Apple 2022 MacBook Pro - amzn.to/3ENhBVV
-- Acer Nitro V Gaming Laptop - amzn.to/3PBFW66
-- HP USB Wireless Mouse - amzn.to/46pwWaD
-- Lenovo Wireless Compact Mouse - amzn.to/456ijIe
-- Portronics Wireless Optical Mouse - amzn.to/3t6UL97
-- Mouse Pad Large/Desk Mat - amzn.to/3EQg3dG
-- Gel Mouse pad with Wrist Rest - amzn.to/3EWcgvb
-- Vegan Leather Mouse Pad with Wrist Rest - amzn.to/3EPyK13
-- uni-ball Eye 0.7mm Roller Ball Pen - amzn.to/3LAHQCJ
-- Reynolds TRIMAX - amzn.to/46l1V7L
-- Pentonic Ball Pen - amzn.to/3ZvhZl7
-- Hauser Sonic 0.55mm Gel Pen - amzn.to/3ZvynlQ
-- STABILO Fineliner Pen point - amzn.to/3PmtvuE
-- To Do List Acrylic Board for Desk - amzn.to/3Lzz3AT
-- 2023 Undated Daily Planner/Journal/Schedule/To-Do List/Productivity Tracker/ Gratitude Journal/Mood Tracker for Wellness - amzn.to/3PQ9iin
-- Daily Planner and Journal - amzn.to/46oKnIe
-- To Do List Daily Planner Notepad A4 - amzn.to/3PuvIV1
-- Simple Planner: 12 Months Undated - amzn.to/46oRakS
-- Journal Diary - amzn.to/3PwIoui
-- Soft Cover 6 Subject Spiral Binding Notebook, Single Line - amzn.to/3RzwHpC
-- Hard Bound Notebook with Elastic Band Closure & Pen Loop - amzn.to/3rh9yxr
-- 5 Subject Notebook - amzn.to/3ENzG5U
-- Classic Notebook Checkered - amzn.to/3POxVff
-- Sticky Book Tabs Colorful Annotation Tabs - amzn.to/3POZSU4
-- Transparent Sticky Notes - amzn.to/3ZsqT2U
-- Pastel Sticky Notes Pad - amzn.to/3Zr9jfO
-- Post-it Super Sticky Notes - amzn.to/3PMRq7Z
•••••••••••••••••••••••••••••••••••••••••••••••••••
Music Used :
------------------------------
Tobu - Candyland [NCS Release] : • Video
------------------------------
•••••••••••••••••••••••••••••••••••••••••••••••••••
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
Please continue this series!!
This is by far one of the most helpfull things I've ever watched in yt. Thank you so much!
the best python tutorial on youtube💓💗
Good editing & explained several scenarios, thanks!!
Not even a single doubt thank to you mam
After too much video's i reach here and stops here❤❤❤
At 4:35 as stop index is mentioned as 13 answer should be "no" right instead of "noi"
Very good explanation and nice editing
Great video!
Thank you so much 😊
Thanks a lot! It was very helpful
very helpful clear and easy haven't found any resources regarding that, thanks
👍
Crystal clear explanation 👍🙂
Could you please try to complete the statistics
Thank you so much, you explain so much better than my teachers!
great....!!!!!
With this video, I'm done struggling to understand list and String slicing
Great video, simplest explanation.
Thank you very much for sharing your knowledge, the video was very clear and objective directly to the topic, good video!.
good clear in my doubt
Perfect Tuto
@4:46 - How come the C index as 8 ?? L-0 , e-1, a-2,r-3 ,space - 8 and C-9
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 explanation.....for 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
thank you a lot
Very good, Excellent
Thank you 🙏🏻
Thank you
🥵🥵
b = "Hello, World!"
print(b[-2:-5:-4]) can you explain this
!r will be the output from my understanding
scenario 3 will be blank
Upload more video it would be helpful for learning
What is the output of the mystring[0:-4]? Is it an error? why it still valid? Wouldn’t the direction contradict itself?
If mystring="Learning Champion" and you type mystring[0:-4] then the output will be 'Learning Cham'. This is because the direction of movement of pointer is from left to right and the stop index is -4 which is 'p'.
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.
Yes. Then that case would not be slicing using a negative index. The same example is explained in string slicing (ruclips.net/video/eH6GCyHnWTA/видео.html) video. You can watch that video for more clarity.