how to convert anything to text in python code example Example: to string python x = 2.718 strX = str(x)