micropython

tests/for_if_usage.py

510:41b26d6cd7ea
2012-05-21 Paul Boddie Expanded the documentation, adding prerequisites, reports and roadmap sections. Updated the copyright information.
     1 #!/usr/bin/env python     2      3 class C:     4     p = 1     5     q = 2     6      7 c = C()     8 a = 1     9     10 for x in 0, 1, 2:    11     if a:    12         b = c.p    13     else:    14         b = c.q    15     16 result_1 = b    17     18 # vim: tabstop=4 expandtab shiftwidth=4