Patterns In Array Python Example