+ 1
What is String?how is it helps for me?
7 Respostas
+ 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.
+ 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
0
sir when we use single and double quotes ?
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
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
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
0
Thank you sir for giving this valuable information🤝🤝🤝