source: orange/orange/doc/reference/pythonvariable2d.py @ 1022:6287cc28aaa0

Revision 1022:6287cc28aaa0, 325 bytes checked in by janezd <janez.demsar@…>, 10 years ago (diff)

* empty log message *

Line 
1import orange, math
2
3def perfectSquares(x):
4    return filter(lambda x:math.floor(math.sqrt(x)) == math.sqrt(x), range(x+1))
5
6class A:
7    def __init__(self, x):
8        self.x = x
9    def __str__(self):
10        return "value: %s" % self.x
11
12a = 12
13
14data = orange.ExampleTable("pythonvariable.tab")
15for i in data:
16    print i
Note: See TracBrowser for help on using the repository browser.