0

strings and variables

i don't know the difference's

14th Dec 2024, 11:35 PM
print ("python")
print ("python") - avatar
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”
14th Dec 2024, 11:50 PM
Junior
Junior - avatar
+ 5
print ("JUMP_LINK__&&__python__&&__JUMP_LINK") , Yes string is a data type of a variable
15th Dec 2024, 5:15 AM
Alhaaz
Alhaaz - avatar
+ 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`.
15th Dec 2024, 12:35 PM
Lothar
Lothar - avatar
+ 1
Abhay Kushwaha , this is not the right place to say hello. > *q&a* section is meant for raising coding related questions and discussions.
16th Dec 2024, 8:56 PM
Lothar
Lothar - avatar
+ 1
18th Dec 2024, 7:20 PM
Podle Playz
Podle Playz - avatar
0
So strings can be in a veriable?
15th Dec 2024, 4:34 AM
print ("python")
print ("python") - avatar
0
Im doing that lesson and i must lost all my hearts today do to something els
16th Dec 2024, 3:22 AM
print ("python")
print ("python") - avatar
0
Hi
16th Dec 2024, 2:36 PM
Abhay Kushwaha
Abhay Kushwaha - avatar