You can print a NumPy ndarray as a simple int in Python by converting it to a Python list first and then printing it. Here's how you can do it:
main.py
import numpy as np
# Create a NumPy ndarrayarr = np.array([1, 2, 3, 4])
# Convert the NumPy ndarray to a Python listarr_list = arr.tolist()
# Print the list as a simple intprint(*arr_list)