Fork me on GitHub

  1. Generating a random string.

    July 28, 2013

    Okay so most of us do not know how to generate random strings which include letters and digits. This can be really useful for generating a password or something else just use your evil mind. Okay so how do we generate a random string. Have you ever heard of the ...

    read more
  2. What is __init__.py ?

    July 28, 2013

    Okay yet another useful post. This post is really important and useful for anyone just starting out with python. So what is the __init__.py file ?

    Files name __init__.py are used to mark directories on disk as Python package directories. If you have the files

    mydir/spam/__init__.py ...
    read more
  3. The with statement

    July 28, 2013

    So the chances are that you already know about the with statement but some of us do not know about it. Lets face the reality the with statement saves us a lot of time and reduces our code base. Just imagine you are opening a file width python and then ...

    read more

« Page 8 / 8