Numpy Python Why This Code Did Not Work Invalid Syntax Stack

Numpy Python Why This Code Did Not Work Invalid Syntax Stack