Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain the role of repr function.



Explain the role of repr function...

Answer / chaitanya

Python can convert any value to a string by making use of two functions repr() or str().

The str() function returns representations of values which are human-readable, while repr() generates representations which can be read by the interpreter.

repr() returns a machine-readable representation of values, suitable for an exec command.

Following code sniipets shows working of repr() & str() :

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What do you understand by the process of compilation and linking in python?

0 Answers  


Why python is best for data science?

0 Answers  


What is nose python?

0 Answers  


How do I run a py file in python shell?

0 Answers  


What is self in python?

0 Answers  


What is the interactive mode?

0 Answers  


How can I find the methods or attributes of an object?

0 Answers  


Does python use ram?

0 Answers  


Is map faster than for loop python?

0 Answers  


Why python is the best?

0 Answers  


When does a dictionary is used instead of a list?

0 Answers  


What is a control flow statement?

0 Answers  


Categories