str Function : Str : Buildin Function PYTHON examples


PYTHON examples » Buildin Function » Str »

 

str Function


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)                                     

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Buildin Function
» Str