+ 2

What is a string? Pls don't explain in the application's way because I didn't understand it

10th Oct 2016, 8:25 PM
De Nomano Amedi
11 Answers
+ 2
Craftspeople making necklaces might string beads. The start (or reference) bead can be bigger than the other beads. They follow each other, one-by-one as a string of beads. Print 'letters of the alphabet' on the beads. Maybe the big one is uppercase. Now their order (arrangement) has become important. You can allow numbers, punctuation, spaces and other text. It would be weird to try to "add" beads just because they have numbers on them; you need the numbers themselves. The only way to reliably get a number from beads with numbers on them is if the number represented is good. Then you can add the represented values. The string itself (that the beads are strung onto) is the available space (like computer memory). The arrangement is something with a count (length, number of beads) that takes up some of that space...like a number of bytes. Usually one byte per character is enough. A multibyte string simply represents what used to take one bead(byte) with more than one. ----(H)(o)(p)(e)---- that helps.
10th Oct 2016, 8:59 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
String is simply the character array which includes the combinations of A-Z , a-z, all special characters and digits and it its written between " " . For example, name , address, or anything like that is called string
11th Oct 2016, 10:00 AM
Meera Beladiya
Meera Beladiya - avatar
+ 2
@De nomano yes you are right. any sentence or word between quotation is a string. its a collection of words including symbols and numbers.
12th Oct 2016, 5:54 PM
Priyanka Sahu
Priyanka Sahu - avatar
+ 1
yeah. you have added parentheses to a string.
10th Oct 2016, 8:42 PM
Anders Axelsen
Anders Axelsen - avatar
+ 1
Adding to: "Do you mean that whatever is quoted is a string?" In Python that's one of the delimiters. The "no technical difference" between double (") and single (') helps them mix to avoid accidents: "This text string's got an apostrophe" 'This one has doubles "inside".' instead of: "This isn't very \"readable\"." 'This one\'s not as readable either.' Understanding strings alone (how your question read to me) is relevant to Python and additional concepts via convention: http://programmers.stackexchange.com/a/155188 also from: https://en.m.wikipedia.org/wiki/String_literal "... in Python, raw strings are preceded by an r or R...Python 2 also distinguishes two types of strings...explicitly indicated [using b/B or u/U]" and docstrings start+end with """. They're all string literals.
12th Oct 2016, 6:54 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
a string is a series of letter (consist of all writable characters) that are consecutive. you use string for write words or sentences. you have to always sorrounded the string with double quote or single quote. you also need to know wich especials characters have to scape.
1st Dec 2016, 8:45 PM
Francisco Javier Coenda
Francisco Javier Coenda - avatar
0
it's an item you can list. List items are strings. Strings are words in citation marks. "string" is a string. "Bob" is a string. "cat" is a string. when you advance, you will know how to manipulate strings.
10th Oct 2016, 8:33 PM
Anders Axelsen
Anders Axelsen - avatar
0
Do you mean whatever is quoted is a string?For eg("xyz") is a string.
10th Oct 2016, 8:39 PM
De Nomano Amedi
0
Strings are simply some characters like a B cr then can also be 1 2 3 but then should be in double codes
2nd Nov 2016, 12:44 PM
Ranjana Karmhe
Ranjana Karmhe - avatar
0
A string is any combination of letters from a-z
3rd Nov 2016, 2:29 PM
Babay Rian
Babay Rian - avatar
0
string is just a collection of characters
5th Nov 2016, 4:27 AM
Dinesh Devaki
Dinesh Devaki - avatar