Cheers,
If statement
if myBoolean == true:print "myBoolean is true."else:
print "myBoolean is false."
For loop
for i in range( 0 , 10 ):
print "i = " + str( i )
While loop
i = 0
while i < 10:
print "i = " + str( i )
i = i + 1
String functions
myString = "testing123"
index = myString.find( "123" )
firstPart = myString[ :index ]
secondPart = myString[ index: ]
AB