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)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.
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
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
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.