Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah

IndhumathyChelliah/n16.py Secret

Created Jul 18, 2020
Embed
What would you like to do?
import numpy as np
a=np.zeros_like([1+1j,2+2j])
print (a)#Output:[0.+0.j 0.+0.j]
a1=np.zeros_like([1,2])
print (a1)#Output:[0 0]
a2=np.zeros_like([1.,2.])
print (a2)#Output:[0. 0.]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment