+ 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
3 odpowiedzi
+ 2
String is a sequence of characters, numbers are characters too.
28th Feb 2020, 9:07 PM
Seb TheS
Seb TheS - avatar