Answers for "NumPy invert Code When the input is an array"

0

NumPy invert Code When the input is an array

# welcome to softhunt.net
# Python program explaining
# invert() function

import numpy as np

arr = [3, 4, 54]

print ("Input array : ", arr)
	
ans = np.invert(arr) 
print ("Output array after inversion: ", ans)
Posted by: Guest on April-29-2022

Python Answers by Framework

Browse Popular Code Answers by Language