+ 1

what is diffferent between string and values

string&values

7th Mar 2021, 3:51 PM
samar khan
samar khan - avatar
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".
7th Mar 2021, 3:56 PM
noteve
noteve - avatar
+ 2
thanks
7th Mar 2021, 3:56 PM
samar khan
samar khan - avatar
+ 1
thnks
7th Mar 2021, 4:27 PM
samar khan
samar khan - avatar