Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah

IndhumathyChelliah/n22.py Secret

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