Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah

IndhumathyChelliah/n20.py Secret

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