The str constructor

We can use the str constructor to create strings representations of other types, such as integers:

>>> str(496)
>>> '496'

Or floats:

>>> str(6.02e23)
'6.02e+23'
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset