strL = 0 # Not recommended
stringLength = 0 # Recommended
class EmcFruit:
def print_(self):
pass
class EmcApple(EmcFruit):
def print_(self):
pass
fp = EmcApple()
print fp
class Point:
def __init__(self,a,b):
self.x = a
self.y = b
def x1(self,a):
self.x = a
p = Point(0,0) # a point in a 2-dimensional space
p.x1(1); # set X-coordinate
print p.x # prints X-coordinate, "1"
def check_assign(a,i,t):
if (i < len(a)):
a[i] = t;
class String:
pass
class DynamicArray:
pass
a = 'aaa'
s1 = 'xyz'
s = 'abc' # Emc::String s;
#s1 = EmcString() # Belongs to the Emc Class Library
#s2 = OtherString() # Belongs to the Other Class Library
#import RWCstring #include "RWCstring.h" /* Recommended */
#from rw import cstring #include "rw/cstring.h" /* Sometimes needed */
i__j = 11;
_K = 22;
_m = 33;