0
strings and variables
i don't know the difference's
8 Antworten
+ 3
string are a sequence of characters surrounded by quotes
variables are containers for storing data
variables have different types of data that they can store, one of which are strings
this is a string:
“hello” or ‘hello’
you can display the string literal using the print() function:
print(“hello”)
a string assinged to a variable which is displayed:
x = “hello”
print(x)
the output is:
“hello”
+ 5
print ("JUMP_LINK__&&__python__&&__JUMP_LINK") , Yes string is a data type of a variable
+ 3
print ("JUMP_LINK__&&__python__&&__JUMP_LINK") ,
(yes, a string can be assigned to a variable.)
this is explained in the tutorial `introduction to python`, and you can find it also in the `python developer` tutorial.
so if you get stuck with this basic topic, it is recommended to re-start learning from the mentioned tutorial `introduction to python`.
+ 1
Abhay Kushwaha ,
this is not the right place to say hello.
> *q&a* section is meant for raising coding related questions and discussions.
+ 1
Hi Alhaaz
0
So strings can be in a veriable?
0
Im doing that lesson and i must lost all my hearts today do to something els
0
Hi