New course! Every coder should learn Generative AI!
Try a free lesson+ 1
string is the type in Python .. it is generally in the quotes (Text)
or in some cases for example number 2 could be interperet as string if it is inside str(2) or in quotes "2"
Python interpretes everything as string between quotes
a = 2 ->>> is number
a="2"--- is string
a= "something" .>>> is string
a=str(2) ->>> is string (2 converted to string)
you cant add string
for example 2+2=4
but "2" + "2" is "22"
and you cant add string with number
"2" + 2 >>> ERROR.
Hope this helped you.