How to Work with 'Text'? (Python Strings)? #16

preview_player
Показать описание
A string is a sequence of characters or textual data. We have already used strings many times in our programs before.

In this video, we will learn about Python strings in depth. We will learn to manipulate, perform various operations, and iterate over strings in Python. We will also cover numerous built-in methods that make working with strings much easier.

~

Watch our videos and revise them with our Python App!

Timestamps:
0:00 Intro
0:34 Create a String
2:44 Access String Characters
4:08 Negative Indexing
4:43 Slicing of a String
6:02 Change and Delete String Characters
6:47 Python String Operations
8:47 Iterating through a String
10:44 Python String Methods
12:57 Programming Task
13:12 Recap

Find Programiz elsewhere:
-------------------------------------------------

How to Work with 'Text'? (Python Strings)? #16

#python #learnprogramming #programiz #pythonstrings
Рекомендации по теме
Комментарии
Автор

🔥Finding it Damn Hard to Understand Python?
Learn to code—the right way—with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT!

programizstudios
Автор

I would thoroughly recommend this series of lectures to all newbies. Its a great foundation. Thank and well done, Punit and the Programiz team.

Navin
Автор

I had a great job in your all vedios ...I used to try the practice problems given by you every day ...It is perfectly useful .actually i am beginner from biology group ..But after watching programiz vedio i got a great ideas ...Keep teaching sir ..I'm doing a great job ✌✨

hema_varsh
Автор

Can you please clarify on why the answer is 7?( at 12.03 minutes)

kirancp
Автор

thanks sir for creating this wonderful python course

mehulkumawat
Автор

compliment = " you are very good teacher, i like the way the topics of this series are structured "

print (compliment.replace("you are", "Punit is"))

hahaha

gauravgarg
Автор

ur communication skills are super sir mind blowing explanation

puchakayalasuresh
Автор

Aapka samzana ka Tarika sabse alag hai maine bahut bahut channel ki video dekhi hai lekin simple Trikha aap ka hi hai

akshedcentre
Автор

Hi i have a query please do can we capitalize a letter from a text...like in python i want to make Y as upper case....How can i do that?

girisankargr
Автор

Greetings sir. I really love your videos . I am trying to go for the entry level PCEP python certification. How many of your videos would cover for the material of that test ? if anyone knows the answer then please comment here.

basharmufaq
Автор

How would you find the frequency on "Python Strings"

pro.empire
Автор

Please also alow us to save our code in python compiler which is on your site

harish
Автор

I have 2 string exercises which are making me hate programming with python from the heart as they are suppose to be as easy as returning 1+1.
def pairs(txt):
if len(txt)%2==0:
right_indexes=list(range(1, len(txt), 2))
print(right_indexes)
left_indexes=list(range(0, len(txt), 2))
print(left_indexes)
right_letters=map(list(txt).__getitem__, right_indexes)
left_letters=map(list(txt).__getitem__, left_indexes)
pairs=list(zip(left_letters, right_letters))
return pairs
I've ended up creating this list of paired tuples thinking it might help me understand better as I noticed how comparing 2 things next to each other. Because if the number of things is odd at the right side edge, it's not easy for me to know what to do.

But it's not helping me to solve these very simple problems as I have no idea how to implement a for or while loop from pairs [(A, B), (B, C), (A, B), (C, C), (C, D)] for these 2 exercises:

1)Make a function that removes letters that are alone. Like if you have like ABBCABCCCD it would return BBCCC

2)Make another function which does the opposite turning like ABBCABCCC returns ACABD removing duplicates alight together (not just all).

my brain only works to turn the whole thing into a set... ;____; When things are like this and you truly have to understand loops.... plus conversion as one is suppose to input a string and output should be a string.... I really feel like I'm the dumbest person alife

Please help me solve these.

ugabuga
Автор

I have a file. I split() lines of the file using 4 variables. Then, append to the list. What is used to add an instance variable to the list, so I have 5 variables? That I have to append data to, from a function that used data from the file to determine percents?

jackburtjr
Автор

Please someone explain this code. I'd like to know why there is f without curly braces:
print(f"Hello\nWorld!")

mycha
Автор

Sir in quiz the answer for Q2 is o, your answer is d in git but negative index starts with last character e (-1), d(-2), 0(-3)

sirisiri
Автор

We can't change a string as mentioned in 6:08 but how come the same rule doesn't apply when using String Methods in 10:45?

nayanaprakash
Автор

"He said, \"what\'s there?\"""" He said, "what's why so Sir?, Although i took extra 3 quotes but still giving me the right statement

NehaGupta-ifse
Автор

1k
2k
3 tolk os cheap, show me the program

jancyranip
Автор

if you dislike the video
u will get curse that you will not be able to learn python

oyevicuu