TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Jeremy K.
Computational Bioengineer
Tutor Satisfaction Guarantee
Python Programming
TutorMe
Question:

I have a list of my favorite things: my_things = ["spam","eggs","ham","cheese"] What does my_things[::-2] evaluate to?

Jeremy K.
Answer:

The third argument to a Python slice is the number of steps to take when slicing. In this case, by using a negative step and default beginning and end, my_things[::-2] slices in reverse order, from the end of the list to the beginning, and skips every other item. In other words, ["cheese","eggs"].

Computer Science (General)
TutorMe
Question:

You are building a website where people can enter the name of their favorite color and see how popular it is. Should you use a hash table to store their responses?

Jeremy K.
Answer:

If your website becomes very popular, you will have difficulty accessing all this information. A hash table has extremely fast O(1) access complexity, but picking a hash table size that's large enough to fit every color is a waste of memory, and a hash table size that's too small is almost worthless. You should keep track of all the color names in an alphabetically sorted list stored in a tree. That way, you can insert new color names and check how popular other colors are in O(log n) time, no matter how many color names there are.

Biology
TutorMe
Question:

A friend comes to you with a question about a new startup(Yog-Ex) looking to hire her. The founder of Yog-Ex claims to have invented a revolutionary product with "the power of probiotic yogurt-derived endoplasmic reticulum". Should your friend go to work for Yog-Ex?

Jeremy K.
Answer:

Your friend should not take the job. Yogurt is made with $Lactobacillus$ bacteria, and bacteria do not have any endoplasmic reticulum. Yog-Ex's founder is either mistaken or the whole company is based on lying about their core product, and either way will not be a good place to work in a year or two.

Send a message explaining your
needs and Jeremy will reply soon.
Contact Jeremy
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.