<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Hello, </DIV><DIV> I'm a really-green-to-python Biology Grad Student. I;m starting this code so I can assign either a 0 or a 1 at a root node that I will later evolve throughout a tree, but for some reason it is not printing the rootState value.  I know its probably a really stupid mistake, but I can't seem to work it out. Can anyone give me insight why? Thanks. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>import random</DIV><DIV>from random import random as rnd</DIV><DIV>from math import exp</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>class Root:</DIV><DIV>    """Single Node in a Tree"""</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>    def __init__( self, rootState ):</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>        </DIV><DIV>        self._rootState = rootState</DIV><DIV>    </DIV><DIV>        # random choice for root state from a list</DIV><DIV>        for i in range(1):</DIV><DIV>            rootState = random.choice([0, 1])</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>    def __str__( self ):</DIV><DIV>        """Root string representation"""</DIV><DIV>    </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>        return str( self._rootState )</DIV><DIV>print "The character state at the root is %0.f" % rootState</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hugo Alamillo</DIV><DIV>Biological Sciences</DIV><DIV>265 Eastlick</DIV><DIV>PO Box 644236</DIV><DIV>Washington State University</DIV><DIV>Pullman, WA 99164</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>