+ 1
what is diffferent between string and values
string&values
4 Réponses
+ 4
I don't know what you mean by 'values' but maybe this would help:
string or str is a specific data type, in other words those are texts. They are closed within quotation marks (either single or double).
Examples:
▫️"Hello World"
▫️"42"
▫️'Python'
Meanwhile, values are the value that are assigned into a variable.
Examples:
▫️num = 5
🔹Here num is the variable and 5 is the value.
▫️word = "Spam"
🔹Here word is the variable and it holds the value "Spam".
+ 2
thanks
+ 1
thnks