+ 3

Strings in python

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

5th Aug 2018, 4:42 PM
jan
5 Réponses
+ 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.
5th Aug 2018, 4:49 PM
Maninder $ingh
Maninder $ingh - avatar
+ 2
These videos are very useful. I used these videos to learn the basics. I hope it helps!
6th Aug 2018, 9:45 AM
Ilan Siva
Ilan Siva - avatar
0
It's a type of variable which contain multiple characters (you should read the comments they are really useful to understand a course)
5th Aug 2018, 4:50 PM
Comsis Alexis
Comsis Alexis - avatar
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
5th Aug 2018, 9:05 PM
Jose Esteve
Jose Esteve - avatar
6th Aug 2018, 9:43 AM
Ilan Siva
Ilan Siva - avatar