0
Q:

NameError: name 'array' is not defined

Do yo have a file called numpy.py in your working directory?
If yes, rename it.

For your task in https://python-forum.io/Thread-Question-1-Count-symbols
you do not need numpy.
0
import numpy as np

a = np.array([1,8,3])
0

New to Communities?

Join the community