{ } javasamplesAI. CODE. BUILD.
Advertisement

THE TUTORIAL LIBRARY

All tutorials

1,914 tutorials
Python2012-04-07

with in Python

Python has a 'with' statement that wraps the execution of a block, calling code on the entrance and exit from the block. Some language have a construct that looks like this:

Read tutorial
Advertisement
Python2012-04-07

goto in Python

You can use exceptions to provide a 'structured goto' that even works across function calls. Many feel that exceptions can conveniently emulate all reasonable uses of the 'go' or '

Read tutorial
Python2012-04-07

Static in python

Both static data and static methods (in the sense of C++ or Java) are supported in Python. For static data, simply define a class attribute. To assign a new value to the attribute,

Read tutorial
Python2012-04-07

Delegation in python

Delegation is an object oriented technique (also called a design pattern). Let's say you have an object x and want to change the behaviour of just one of its methods. You can creat

Read tutorial
{ }

The future is yours to build.

One example today. A better developer tomorrow.

Find something to build →