#task11

Published: 01 January 2021
on channel: Python Developer
839
7

#task11
def function11():
Replace all odd numbers in arr with -1 without changing arr.

arr = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
ans = #write your code here

return ans

"""
Expected Output:
array([ 0, -1, 2, -1, 4, -1, 6, -1, 8, -1])
"""
#Shaheencodingzone
Subscribe
liek
share
| Python Tutorial For Beginners


On this page of the site you can watch the video online #task11 with a duration of hours minute second in good quality, which was uploaded by the user Python Developer 01 January 2021, share the link with friends and acquaintances, this video has already been watched 839 times on youtube and it was liked by 7 viewers. Enjoy your viewing!