Checking Types In Python If You Executed