+ 1

Anyone can explain strings in another way please?

So far i understated everything perfectly but I'm not quite getting the definition of strings tbh

27th Jun 2016, 6:05 PM
Bader871
Bader871 - avatar
5 odpowiedzi
+ 3
Wow you should be a teacher 😂. It did! Thanks!!
27th Jun 2016, 7:11 PM
Bader871
Bader871 - avatar
+ 1
When you enter text on Python, you put it in quotations " " or ' ' so Python knows you are entering plain text and not program instructions. The text you enter is called string, because it is a string of characters. Hope it helped.
27th Jun 2016, 7:07 PM
A. Barbosa
A. Barbosa - avatar
+ 1
strings are like lists of characters. on the Stack they Are like ['a', ' ', 's', 't', 'r', 'i', 'n', 'g', '\n']. It is saved as a List of representive numbers that simply stand for a char value. this could look like [40, 5, 57, 58,...] i.e. especially i think this will be something else
28th Jun 2016, 7:51 AM
Loeschzwerg
0
To put It simple a string is a chain of chars
28th Jun 2016, 1:26 AM
Yannic Wehner
0
A single character has its numerical ASCII code representation. Think of a string as an ordered set of chars and so as a different way of representing that numerical codes. Moreover think of operation on strings as of operation on corresponding numerical code just with a new semantic (I.e. a + b means concatenation not summation even though both are a kind of adding of two entities)
29th Jun 2016, 6:30 AM
Ulisse Rubizzo
Ulisse Rubizzo - avatar