str() vs repr() function in python
by : D.BHUVANESHWARI str() vs repr() function in python str() : This function is used to represent the string. Python programming language is used to convert the specified value into a string datatype. str() function Syntax: str(object, encoding=’utf-8?, errors=’strict’) object: The object whose string representation is to be returned. encoding : Encoding of the given …