Posted by : Rhyf Ahmad Wednesday, May 20, 2015

It’s important to match your data structure choice to your data. And that choice can make a big difference to the complexity of your code. In Python, although really useful, lists and sets aren’t the only game in town. The Python dictionary lets you organize your data for speedy lookup by associating your data with names, not numbers.

And when Python’s built-in data structures don’t quite cut it, the Python class statement lets you define your own. This chapter shows you how.


Coach Kelly is back (with a new file format)
Use a dictionary to associate data
Bundle your code and its data in a class
Define a class
Use class to define classes
The importance of self
Every method’s first argument is self
Inherit from Python’s built-in list
Coach Kelly is impressed
Your Python Toolbox

Ebook Preview
Get the ebook now (2.06 MB)

If the link above doesn't work, try the link below

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -