Python Tutorial for Beginners 6 - Strings

preview_player
Показать описание
In this Video I am going to show how to use String literals in Python. In python String literals can be enclosed in matching single quotes (') or double quotes ("). A Python string is a sequence of characters. A string literal uses quotes 'Hello' or "Hello". Single- and Double-Quoted strings are the same. To “concatenate” strings,
use + symbol. e.g. print("Hello"+"World") . When a string contains numbers, it is still a string. We can convert numbers in a string into a number using int().
In Addition I am also going to show how to use comments in Python i.e. How To Write Comments in Python 3

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
python 3 unicode strings
python 3 compare strings
python 3 join strings
python 3 raw strings
python 3 bytes to string
python 3 string formatting
python 3 int to string
concatenate strings python
Рекомендации по теме
Комментарии
Автор

Your videos are very easy to understand because they are explained very clearly. Please do more of these advanced level of programming videos!

salamali
Автор

i just finished watching this tutorial and i can already write simple codes using what i have learnt so far to solve formulas in physics and chemistry.this is so beautiful

macshild
Автор

very straight forward and easy to follow .

milangerloff
Автор

For the combination of numeric and string data also we can write print(a, b)

milansubedi
Автор

Thank you sir ...Your tutorials are easy to understand.Make more videos.

jaheerazam
Автор

this tutorial is very easy to understand, thank u so much

enipothamsubramanian
Автор

Thanks for the great videos series. You can also code print(a+b) as print(a, b). This works even for the two data types

thevincent
Автор

you can also print a string and an int value in a single line with out using str() function . like this
a="Hello"
b=5
print(a, b)

Sandipansarkar
Автор

Thank you so much, for such detailed and comprehensive explanation. Appreciate all your effort to help naive folks like us!

kiranananthu
Автор

thank you for these videos .these are really helpful

yennarascalamindit
Автор

really Great video series. Thank you very much!

maheshchathurange
Автор

we can also write code like this

a="hello"
b=5
print(a, b)

o/p hello 5

prabhakaran
Автор

I don't know if anyone has noticed that "\triple" when the module run, comes out as riple, the T was missing. I tried to do it with all alphabets to see which one will show up as missing but error sign came up... i did it as --> a=" \a \b \c etc etc" print (a)

kibting
Автор

thankyou for these tutorials....quick question..when u used the Len function it calculated as 34...does python count the empty spaces in a string as well ??

Pixy
Автор

Great videos :)
Can you also tell how to take string using input function.

shruthivenugopal
Автор

Hi sir.. in this video, when u use back slash in 6.49 mins, why its showing that "' i am a riple quoted string where is t in triple? Plz explain

SaranyaSaranya-ujum
Автор

Please make a video about different languages, where and in which field the different languages can be used?(like for Android development which and all languages should we learn same as web development, image processing, data science)

findingpeace
Автор

hi i want to print a 10 times as print(a * 10) but every word in next line, then what we should do

prashant
Автор

It seems to be 22 in length how can it be 34 in string a please explain quickly

soumyadeepbarik
Автор

when we use escape character in case of triple quoted statement, why 't' is not printing .Like \single and \double is printing the same .
/triple is printing riple

sauravsuman