• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

what does repr() function does in python?

pythoniniswhatrepr
9th Feb 2020, 1:32 PM
sai
2 Answers
+ 3
It shows the string representation of an object. you have a class dog. with instance Lassie. now. what shall be shown on print(Lassie)? repr() gives the answer
9th Feb 2020, 1:41 PM
Oma Falk
Oma Falk - avatar
+ 2
https://www.sololearn.com/discuss/1560912/?ref=app https://www.sololearn.com/discuss/976902/?ref=app
9th Feb 2020, 1:44 PM
Oma Falk
Oma Falk - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
[OFFICIAL] 🌿🧠Coding Challenge: Code for Calm
21 Votes
Ejor oo
0 Votes
How to transfer my sololearn account to another device
1 Votes
Can an element have two classes?
1 Votes
While loops and negative list indexing in python
3 Votes
How do I see my playground code on the mobile app (iOS)
0 Votes
Lost my streak even though I repeated and completed a lesson
0 Votes
Complete the code to get a user input and store it into a variable called address
0 Votes
ХДртОфОĐșат
0 Votes
What is the hardest thing in coding world?
0 Votes