Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Abhishek T.
Undergraduate in Computer Science
Tutor Satisfaction Guarantee
Python Programming
TutorMe
Question:

How can we return multiple values from a function?

Abhishek T.
Answer:

There are multiple ways to achieve this feat in Python, some of which are: 1. Using a tuple We can form a tuple with multiple variables like -- if a=5, b=9, c=10 a tuple if formed as (a,b,c) This tuple is then returned by the function. But the problem is with a large number of variables it's easy to forget which value is where. 2. Using a dictionary A sort of record notation is added to the tuples so that they can be remembered Formed as {"a":a, "b":b, "c":c}, it's then returned from the function. 3. Using a class We can return a specialized structure. We can define a class with multiple attributes, and return an object of that class. 4. Using a list We can form a list of multiple elements and return that list. For example :- a=5 a.append(6) a.append(67) return a

Calculus
TutorMe
Question:

What is a Point of Inflexion? And how can we find that point given the equation of the curve?

Abhishek T.
Answer:

A function which is continuous and differential has a point of inflexion (x , f(x)) at that point on the curve where the concavity of the curve changes from concave to convex or vice versa. Basically at that point the derivative of f(x), f'(x) reaches to its extremum. This point can be found out by getting out the values of x for which f'(x)=0 and f''(x)=0, the point common for both equations is a point of inflexion.

C++ Programming
TutorMe
Question:

Explain how Standard Template Library (STL) can be used to implement shorter and powerful version of C++ codes.

Abhishek T.
Answer:

There are 3 components in the Standard Template Library (STL) of C++. 1. Containers They represent a collection of objects of some type. Containers are inbuilt data storage elements, using which we do not need to implement different functionalities using node pointers just for the storage of data. Also there are different functions associated with them, which convert our code short. Besides the algorithms used in those functions is the best associated with that function. This makes our code powerful and fast. There are different containers like Stack, Queue, Map, Set etc. 2. Algorithms These are the functions that act on containers. They provide the means by which we perform initialization, sorting, searching, and transforming of the contents of containers. The algorithm associated with those functionalities are the best possible ones, hence the code becomes powerful. 3. Iterators These are used to traverse through the containers and use the corresponding data for different operations. Iterators in STL are so written, that they can work with containers of any datatype, hence they are very robust to use.

Send a message explaining your
needs and Abhishek will reply soon.
Contact Abhishek
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.