str Function : str « Buildin Function « Python
- Python
- Buildin Function
- str
str Function

# The str function coerces data into a string.
# Every datatype can be coerced into a string.
str(1)
horsemen = ['war', 'pestilence', 'famine']
print horsemen
horsemen.append('Powerbuilder')
print str(horsemen)
Related examples in the same category