Strings in python | Sololearn: Learn to code for FREE!

+3

Strings in python

I want to know about strings briefly in python.I cannot understand it.

8/5/2018 4:42:44 PM

jan

5 Answers

New Answer

+5

String is just a data type which is commonly used in python. Remember that everything which is under the two ' ' or " " is a string. e.g="Hello" or "123" we know 123 is a integer but in this example it is under the two " " so now it is string.you can compare two strings with it like. "Hi"=="Hi" computer don't know what is Hi but when you write it in two ' ' or " " then computer know oh this is Hi. there is so many methods for string you can check it by Google.

+2

These videos are very useful. I used these videos to learn the basics. I hope it helps!

0

It's a type of variable which contain multiple characters (you should read the comments they are really useful to understand a course)

0

A string can be defined as a sequence of characters. It doesn't matter what type of characters compose the string but the only important is that the text must be included inside single or double quotes. Regarding to this, you can create variables that contain strings as data type like name ='Tim' or surname ="Jansen". Regards

0

If you are interested in learning python: https://www.youtube.com/playlist?list=PLCiOXwirraUDRk5TlB2ulS3V2-0tB3vcS