@ -818,10 +818,10 @@ creature = Creature()
< span class = "hljs-keyword" > return< / span > len(self.a)
< span class = "hljs-function" > < span class = "hljs-keyword" > def< / span > < span class = "hljs-title" > __getitem__< / span > < span class = "hljs-params" > (self, i)< / span > :< / span >
< span class = "hljs-keyword" > return< / span > self.a[i]
< span class = "hljs-function" > < span class = "hljs-keyword" > def< / span > < span class = "hljs-title" > __setitem__< / span > < span class = "hljs-params" > (self, i, value )< / span > :< / span >
self.a[i] = value
< span class = "hljs-function" > < span class = "hljs-keyword" > def< / span > < span class = "hljs-title" > __contains__< / span > < span class = "hljs-params" > (self, value )< / span > :< / span >
< span class = "hljs-keyword" > return< / span > value < span class = "hljs-keyword" > in< / span > self.a
< span class = "hljs-function" > < span class = "hljs-keyword" > def< / span > < span class = "hljs-title" > __setitem__< / span > < span class = "hljs-params" > (self, i, el )< / span > :< / span >
self.a[i] = el
< span class = "hljs-function" > < span class = "hljs-keyword" > def< / span > < span class = "hljs-title" > __contains__< / span > < span class = "hljs-params" > (self, el )< / span > :< / span >
< span class = "hljs-keyword" > return< / span > el < span class = "hljs-keyword" > in< / span > self.a
< span class = "hljs-function" > < span class = "hljs-keyword" > def< / span > < span class = "hljs-title" > __iter__< / span > < span class = "hljs-params" > (self)< / span > :< / span >
< span class = "hljs-keyword" > for< / span > el < span class = "hljs-keyword" > in< / span > self.a:
< span class = "hljs-keyword" > yield< / span > el