source: orange/docs/tutorial/rst/code/data-instances1.py @ 11556:c9ec072c64a1

Revision 11556:c9ec072c64a1, 312 bytes checked in by blaz <blaz.zupan@…>, 11 months ago (diff)

corrected error with 25th data instance

Line 
1import Orange
2
3data = Orange.data.Table("iris")
4print "First three data instances:"
5for d in data[:3]:
6    print d
7
8print "25-th data instance:"
9print data[24]
10
11name = "sepal width"
12print "Value of '%s' for the first instance:" % name, data[0][name]
13print "The 3rd value of the 25th data instance:", data[24][2]
Note: See TracBrowser for help on using the repository browser.