What your asking is more than a five minute explanation. And looks like a home work assignment. Check out the python docs, search for these topics with dejanews and check out the FAQ at python.org Don't forget books like "Learning Python" and others from O'REILLY. Good luck. -- --Darrell