What is a correct syntax to print the numbers [3, 4, 5] from the array below:
arr = np.array([1,2,3,4,5,6,7])
नीचे दी गए ऐरे से संख्या [3, 4, 5] को प्रिंट करने के लिए एक सही सिंटैक्स क्या है:
Which syntax would print the last 3 numbers from the array below:
कौन सा सिंटैक्स नीचे दी गई सरणी से अंतिम 3 नंबर प्रिंट करेगा:
Which syntax would print every other item from the array below:
कौन सा सिंटैक्स नीचे दिए गए सरणी से हर दूसरे आइटम को प्रिंट करेगा:
What will be output for the following code?
import numpy as np ary = np.array([1,2,3,5,8]) ary = ary + 1 print (ary[1])
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
import numpy as np a = np.array([1,2,3,5,8]) b = np.array([0,3,4,2,1]) c = a + b c = c*a print (c[2])