#!/usr/bin/python x = 1 # while loops require a : to mark the end of the condition # indentation marks which code is in the loop # it doesn't matter how much indentation but it must be consistent # AFAIK you should not mix tabs and spaces in python and preferablly just use spaces while x < 10000000: x = x + 1 x = x * 2 print "The result = ", x print "\nWhat a wierd programming langauge ;)\n\n"