Python Tutorial - 4. Strings

preview_player
Показать описание
In this video of the python tutorial, we will talk about strings. A string is used to store text data in python. The video will explain how to create a single-line string and multiline string, operation of string joining and string functions.

Topics that are covered in this Python Video:
0:00 String introduction and index operator
5:51 multiline string using triple quotes (''')
6:32 \n and \t characters
6:57 + operator to join two strings
8:08 str() function

Next Video:

Рекомендации по теме
Комментарии
Автор

Hello codebasics, shout out from Kenya, really loved your tutorial. Hope you do more of this stuff.

thaish
Автор

Hi Thank you for sharing your expertise through youtube, the videos are very well laid out, short and crisp.I love them.On your web site Pandas and Analytic video are also great.Its hard to find such kind of simple and knowledgeable videos.Keep it up, Well done.

skkkks
Автор

These videos are great. Thank you, sir.

UncleLoren
Автор

>>> text='let\'s learn python'
>>> text
"let's learn python"

use of single quote can also be done in this way!!!

chaitanyaronanki
Автор

1)text='Earth revolves around the sun'
print(text[6:14])
print(text[-3:])


2)t1='i like eating'
t2='veggies'
t3='fruits'
print(t1+' '+t2+'and'+' '+t3)


3)no=2
print('i like eating', no, 'fruits everyday')

pavi_thra_gowda
Автор

hello sir
i understood the sub string concept but how can we use the negative index logic.

SydneyLakshmidevi
Автор

Hello,

The way you explaining is too good, can you please upload more videos which can be useful for us

ravitutika
Автор

how to print substring "sun" using negative index??

lekshmi
Автор

whether the strings in python ends with a null character

vijayjeevanantham
Автор

how did he created those box is it a python feature or he just made it

nandhinishree
Автор

How do you check strings - example in a file

i want to check the line length is equal to x
if it is equal to x then check the characters
the characters must be upper and also numbers.
I am trying to understand in baby steps how i need to do this
I then would like to code it, i just dont know where to start, what i have explained is what i need to do but i just dont know hot to go about it

CollosalTrollge
Автор

Hi Sir..Thanks for the details explanation. I have 2 questions.The first one is how to replace the string value. Is it is possible in Python..and the second one, Is there any way display the total number of characters(Count)..Thanks

praveenkadiyam
join shbcf.ru