+ 1

What is the difference between a string and a variable?

16th Feb 2017, 7:19 PM
Sergiu Cretu
Sergiu Cretu - avatar
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.
16th Feb 2017, 8:06 PM
Luis Robles
Luis Robles - avatar
+ 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)
17th Feb 2017, 4:24 PM
Naveen
Naveen - avatar
+ 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
28th Feb 2017, 10:29 PM
Olawale
Olawale - avatar