toString python
str(self.count)
python class tostring
def __str__(self): return "foo"
Source: stackoverflow.com
int to string python
# Use the function str() to turn an integer into a string integer = 123 string = str(integer) string # Output: # '123'
Source: pythonprinciples.com