Advertisement



< Prev
Next >



Python - String Formattting




In this article, we are going to discuss some important string formatting functions and their variations provided by the Python. A string formatting function allows us to format the data before it is sent as an output to the user. So, let us see what these functions are -

String formatting functions Description
str()
This function formats any object passed to it and returns its human-readable form.

repr()
This function returns an interpreter-readable form of the value passed to it.

format()
This function is only available to string objects, allows us to format the output.






Please Subscribe

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




Advertisement

Notifications



Please check our latest addition

PYTHON and DJANGO


Advertisement