+ 1

What is String?how is it helps for me?

11th Aug 2018, 8:00 AM
bhanuchandra 1999
bhanuchandra 1999 - avatar
7 Answers
+ 3
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.
11th Aug 2018, 9:06 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
a string is a datatype that contains a sequence of letters and numbers and other characters. It can be used to store information such as names
11th Aug 2018, 8:07 AM
Mootin Man
Mootin Man - avatar
0
sir when we use single and double quotes ?
11th Aug 2018, 8:08 AM
bhanuchandra 1999
bhanuchandra 1999 - avatar
0
It doesnt really matter if you use double or single quotes most of the time. But I would use double quotes if you want to include single quotes inside of the string
11th Aug 2018, 8:16 AM
Mootin Man
Mootin Man - avatar
0
sir I am studying b tech 1st year in india . i want to more interest to learn Python but I have many douts on this . I log in this app today .so I want ur watsapp number for easily to solve my doubts .please. sirrr
11th Aug 2018, 8:20 AM
bhanuchandra 1999
bhanuchandra 1999 - avatar
0
"Hello world" --> Is a string 'Hello world' --> Is a string "Hello" --> Is a string Hello --> Is a var str(10) = "10" --> Is a string 10 --> Is an Integer 10.0 --> Is a float True(1) / False(0) --> Booleans
11th Aug 2018, 8:49 AM
Sousou
Sousou - avatar
0
Thank you sir for giving this valuable informationđŸ€đŸ€đŸ€
11th Aug 2018, 8:59 AM
bhanuchandra 1999
bhanuchandra 1999 - avatar