variable 'N' is oddly named. arguments are typically camel-cased in python. also, the name gives no indication that it should represent an array of numbers.