0

strings and variables

i don't know the difference's

14th Dec 2024, 11:35 PM
print ("python")
print ("python") - avatar
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”
14th Dec 2024, 11:50 PM
Junior
Junior - avatar
+ 2
print ("JUMP_LINK__&&__python__&&__JUMP_LINK") , Yes string is a data type of a variable
15th Dec 2024, 5:15 AM
Alhaaz
Alhaaz - avatar
0
So strings can be in a veriable?
15th Dec 2024, 4:34 AM
print ("python")
print ("python") - avatar
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`.
15th Dec 2024, 12:35 PM
Lothar
Lothar - avatar