0

What is double quote string?

5th Jun 2019, 10:18 AM
Harish Chaisir
Harish Chaisir - avatar
3 Answers
+ 3
String in python is a data type that can hold any alpha numerical characters and also special charakters like space or :(&%{. Strings in python are not null terminated. For assigning a string to a variable or just to use it in an other way it has to be enclosed in single, double or tripple quotes. name = ‘Bob’ city = “London” color = ‘’’red’’’.
5th Jun 2019, 10:34 AM
Lothar
Lothar - avatar
+ 1
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 Jun 2019, 12:16 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
strings in programming is very useful.if we take real world example when you create a real programme or software anything then you use string in thousands of time.e.g Let you create a simple video editor desktop app.when user open first time a box is pop up which is terms and conditions and you need to agree with it.Now here terms and condition are written in programme in string data type.thousands of word or letter you see in app basically is written in string data type.
5th Jun 2019, 12:16 PM
Maninder $ingh
Maninder $ingh - avatar