YouTip LogoYouTip

Python Func Str

# Python2.x Python str() Function [![Image 3: Python Built-in Functions](#) Python Built-in Functions](#) * * * ## Description The str() function converts an object to a human-readable string format. ### Syntax Here is the syntax for the str() method: class str(object='') ### Parameters * object -- The object. ### Return Value Returns a string format of the object. * * * ## Examples The following examples demonstrate the use of the str() method: >>>s = 'TUTORIAL'>>>str(s)'TUTORIAL'>>>dict = {'tutorial': '', 'google': 'google.com'}; >>>str(dict)"{'google': 'google.com', 'tutorial': ''}">>> [![Image 4: Python Built-in Functions](#) Python Built-in Functions](#)
← Python Func EvalPython Func Chr β†’