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 python iterator and iterable elements?

0 Answers  


Do you know what the difference between lists and tuples is? Can you give

0 Answers  


Explain the use of // operator in python?

0 Answers  


Do lists start at 0 or 1 java?

0 Answers  


Explain how to create a multidimensional list.

1 Answers  


How do you copy an object in python?

0 Answers  


What exactly are pandas?

2 Answers  


When you need ordered container of things, which will be manipulated, use lists?

0 Answers  


What packages in the standard library, useful for data science work, do you know?

0 Answers  


Which the command you use to exit help window in python?

0 Answers  


What is python used for?

0 Answers  


What is the purpose of is, not and in operators?

0 Answers  


Categories