+ 2

In python what is "str"? I don't know what is it for

20th Nov 2018, 9:21 PM
Mali
Mali - avatar
2 Answers
+ 5
str-the base type is an immutable sequence of characters; str from "string".
21st Nov 2018, 3:17 PM
Ilya R
Ilya R - avatar
+ 1
"str" is one of object type, "str" for String. You also have dict for dictionnary, list for list, etc...
20th Nov 2018, 9:25 PM
XueFang