Python Tutorial #7 | Python Strings: Indexing, Slicing and Methods (upper, lower, replace, split)
Brain_food
0:00 / 0:00
Python Tutorial #7 | Python Strings: Indexing, Slicing and Methods (upper, lower, replace, split)
1 просмотр · 4 дн. назад
Brain_food
52 подписчика
1 просмотр · 4 дн. назад
Text ke saath kaam karna data science ki neev hai. Is video me string ke har akshar tak index se pahunchna, slicing se tukde nikalna aur zaroori string methods seekhenge, real-life examples ke saath.
Is video me:
String kya hai aur len()
Index: positive aur negative
Slicing: [start:stop:step]
Methods: upper, lower, strip, replace, split, find, count
String immutable kyun hoti hai
Chapters:
00:00 Recap
02:00 String aur len()
05:00 Index
09:00 Negative index
12:00 Slicing
16:00 String methods
20:00 Immutable string
22:00 Fun fact
24:00 Recap aur Homework
Homework:
1. Apne naam ko ulta print karo slicing se
2. Ek sentence ke shabdon ko split karke count karo
3. Email se username aur domain alag nikalo
Jawab comment me likho.
Agla video: Conditions, if, elif, else
Series ke saare videos: [playlist ka link yahan lagao]
Like, Subscribe aur dost ke saath share karo.
#Python #PythonStrings #PythonForBeginners
Working with text is the foundation of data science. In this video we learn how to reach each character with an index, cut pieces with slicing and use the important string methods, with real-life examples.
In this video:
What a string is and len()
Index: positive and negative
Slicing: [start:stop:step]
Methods: upper, lower, strip, replace, split, find, count
Why strings are immutable
Chapters:
00:00 Recap
02:00 Strings and len()
05:00 Index
09:00 Negative index
12:00 Slicing
16:00 String methods
20:00 Immutable strings
22:00 Fun fact
24:00 Recap and Homework
Homework:
1. Print your name reversed using slicing
2. Split a sentence into words and count them
3. Extract the username and domain from an email
Post your answers in the comments.
Next video: Conditions, if, elif, else
All videos in the series: [playlist link]
Like, Subscribe and share with a friend.
python strings, python string slicing, python indexing, python string methods, python split replace, python upper lower, python tutorial in hindi, python hinglish, python class 11, python bca, python for beginners
#Python #PythonStrings #PythonForBeginners