blob: 8c4e587764baf9137bf3ccc0e12492e02c2c7d1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from __future__ import print_function
cdef class Shrubbery:
cdef int width
cdef int height
def __init__(self, w, h):
self.width = w
self.height = h
def describe(self):
print("This shrubbery is", self.width,
"by", self.height, "cubits.")
|