Python grammar exercises