+ 1

what is diffferent between string and values

string&values

7th Mar 2021, 3:51 PM
samar khan
samar khan - avatar
4 Answers
+ 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