[Tutor] Can't find my syntax error
DavidCraig@PIA.CA.GOV
DavidCraig@PIA.CA.GOV
Wed, 20 Jun 2001 13:45:38 -0700
I have been working my way through the examples on "How to Think Like A
Computer Scientist (Python)". I can't seem to find my error. Help
Please!! I'm sure its simple, I just can't see it. Thanks!
Dave
##PrintMultiplicationTable function with new parameter
def printMultiples(n, high):
int i = 1
while i <= high:
print n*i, '\t',
i = i + 1
print
def printMultTable(high):
int i = 1
while i <= high:
printMultiples(i, high)
i = i + 1
And gets me the following:
Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>>
File "C:/Python21/Practice/printMultiplesn.py", line 4
int i = 1
^
SyntaxError: invalid syntax
D. H. Craig, CSM