change a datatype to string in python code example Example: convert int to string python int x = 5 string_from_int = str(x)