Natural-Language Processing - Homepages | The University of ...
Natural-Language Processing - Homepages | The University of ...
Natural-Language Processing - Homepages | The University of ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Introduction to Python<br />
● Syntax:<br />
» NewLine seperates commands (no ;s)<br />
» Tabs are important: they are used to mark blocks (no {}s)<br />
def Function1 (a,b):<br />
c=a*b<br />
return c<br />
def Function2 (a,b):<br />
c=a+b<br />
return c<br />
print “s=%d, p=%d” % (Function1(2,3), Function2(2,3))<br />
Computing Science, <strong>University</strong> <strong>of</strong> Aberdeen 3