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 |
You are required to scrap data from imdb top 250 movies page. It should only have fields movie name, year, and rating.
What are the built-in types available in python?
What are python methods?
Why anaconda is used for python?
What are data frames, exactly?
Can I make games with python?
What is the Global Interpreter Lock (GIL) in Python?
python is case sensitive ?
Is python a programming?
What do you think is the output of the following code fragment?
I am trying to get into IT companies. I am finding it very difficult to have it. Don't know at what place I am lacking. At least, if some interviews get conducted, there is a chance of understanding it a bit. Some of my friends are working as fake in IT and they said, HR and other conducting people are not even opening the request posted by freshers, while being a fresher, it is making me very stressed. Even I applied at many companies but not getting response. I asked from my friends about my resume because I was worrying whether I am making mistakes in representing myself but they said it is okay enough. Now coming to education, I have completed M.Tech., GATE(2 times), NET, Research Paper in IEEE international conference (accepted and in process to be published) etc. While submitting the resume, I am mentioning the projects and link of codes that I have done. Still I am only getting the calls from BPO and Voice support that is completely irrelevant for me. There are my seniors who are getting more than 100K per month, they say, I am better than they are based on my education and what ever they observed, it makes me feel better for a moment but still I am not confident enough because I don't have actual idea of working in industry. The more important is, I am jobless and not getting opportunity to start my career. Now I am thinking to hide my degree and other qualifications, and producing fake experience certificate of 2+ years. Putting fake is making me feel guilty and uncomfortable but I have no other choice. Can somebody please suggest me whether I should do it or not? Your suggestions are valuable for me. I am thankful to all of you!
What does numpy linspace return?