+ 1
What is the difference between a string and a variable?
3 Answers
+ 3
String: is a kind of data (letters or alphanumeric).
Variable: Is a "container"; could be any type of data: string, number, list, others.
+ 1
by using variable we can assign a value and using for declaration.
in string means multiple variables, integers and words like "Python is a programming language" it's string.( set of elements)
+ 1
From my knowledge of programming so far, you use strings to present and display particular types of data while variables are objects of dynamic values, they contain data and they can be updated as work progresses