str() and repr() : str « Buildin Function « Python Tutorial






# The str() and repr(): convert to their string representations.

print str(4.53-2j)
print str(1)
print str(2e10)
print str([0, 5, 9, 9])
print repr([0, 5, 9, 9])








13.44.str
13.44.1.str function coerces data into a string
13.44.2.str() and repr()
13.44.3.How to Create and Assign Strings
13.44.4.table of powers using string methods