Report Bug
Qus :

Which syntax would print the last 3 numbers from the array below:

arr = np.array([1,2,3,4,5,6,7])

Qus

कौन सा सिंटैक्स नीचे दी गई सरणी से अंतिम 3 नंबर प्रिंट करेगा:

arr = np.array([1,2,3,4,5,6,7])


A. print(arr[3:])
B. print(arr[3])
C. print(arr[:3])
D. print(arr[4:])


Solution
D. print(arr[4:])






Report Bug