Code basics

JJ joacim at home.se
Fri Mar 17 09:57:36 EST 2000


I'm a C/C++/Java programmer and wonder how to make "code blocks" in Python.

Please translate this to Python:

while( notDone )
{
    int chip = this.getNumberOfSomething();
    if (chip == 10 )
    {
        System.out.println("Tjohoo");
    }
    else
    {
        System.out.println("Oh no!");
    }
}

// Joacim





More information about the Python-list mailing list