I want to convert this int variable to string.
number = int(input("type one number :"))
parseo = number.ToString();
to later convert that "parse" variable into a list like this.
lista = list(parseo)
I do it because I can't convert a data int to a list directly.
here the error.
AttributeError: 'int' object has no attribute 'ToString'
I don't know the syntax for python.
It seems that you come from the world of Java in python you should use the function
str()
as follows:That's it.
You can find more about conversions at this link: Conversions in Python