Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

I recently asked a question about converting strings to lists. Turns out, there is a function that will do it for you. I'm wondering are those functions themselves written in python or something else? Would it be possible to get a look at them? I had been thinking of how to do it (write this function) myself, and it seemed like one of those things you can see is possible but you don't know how to do it. Would a freshly minted BS in Comp Sci be expected to be able to self-implement any given function in Python?

MIT 6.00 Intro Computer Science (OCW)
See more answers at
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer


To see the expert answer you'll need to create a free account at Brainly

The purpose of the course is not to teach you the Python programming language - it is to teach you computer science and programming methods. They expect you to avail yourself to the wealth of help and documentation available for the language itself. The Tutorial in the Python documentation is a good place to start. I read through it numerous times (a little farther each time) while i was learning the language. I find the documentation installed on my computer (windows, F1 in IDLE) much easier to use than the online version.
You can also use the dir function to find the list of all operations on a given object type, for instance running dir('random string') will give you a list of all operations and class definitions for that object type, in this case a string. You can then use the help function for that particular operation, for instance if you want to know what the function pop does to a string, you can type help('random string'.pop) and you will get a description on IDLE of how the function works.
Well, for now I probably should focus on the basics, but I'd just like to see the source code of those functions, to see how they did it. Anyway, though, I do appreciate all responses. This should be a long journey.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

ask the question in the pydev irc channel. i am sure the source is available. thingk the source for all the buitin functions and builtin datatypes is in c
maybe in here: C:\Python27\include (windows install)

Not the answer you are looking for?

Search for more explanations.

Ask your own question