0
strings and variables
i don't know the difference's
4 Antworten
+ 1
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”
+ 2
print ("JUMP_LINK__&&__python__&&__JUMP_LINK") , Yes string is a data type of a variable
0
So strings can be in a veriable?
0
print ("JUMP_LINK__&&__python__&&__JUMP_LINK") ,
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`.