July 29th, 2004, 04:08 AM
An array in Python is called a list(), so if you want to create an array from another data type i.e. a string you would do this.
["s", "t", "r", "i", "n", "g"]
You have a major indent error after your function definition. So i would think that is where the SyntaxError is coming from rather than the line you marked.
Which, if you havn't defined or imported the array() class/function elsewhere in your program, should raise a NameError.
Hope this helps,
programming language development: www.netytan.com – Hula