Can any body explain about string type variables in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can any body explain about string type variables in python?

I know that in this type we enclose text in quotes/ double quotes etc but never did I know that the value of such variable can be a number. For example weight = "21". Can sb explain ?

28th Feb 2020, 8:53 PM
Fereshte
1 Answer
+ 2
String is a sequence of characters, numbers are characters too.
28th Feb 2020, 9:07 PM
Seb TheS
Seb TheS - avatar