Used by print: user-friendly form : str « Buildin Function « Python






Used by print: user-friendly form

Used by print: user-friendly form
num = 1 / 3.0

print str(num)                # used by print: user-friendly form

           
       








Related examples in the same category

1.str Functionstr Function
2.Why Use str on a doc string?Why Use str on a doc string?
3.Input and Output: str() function: return representations of values which are human-readableInput and Output: str() function: return representations of values which are human-readable