+ 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
5 Antworten
+ 3
Wow you should be a teacher 😂. It did! Thanks!!
+ 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.
+ 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
0
To put It simple a string is a chain of chars
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)