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:])



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad