Real basic, in python an imaginary number is represented by j, not i and the code below to make a unit circle. You can take the rest, I was just messing around to make it look cool.
#python #imaginarynumber #unitcircle
n = 100
for k in range(0,n):
time.sleep(0.7)
clear_output(wait=True)
plt.figure(figsize=(6,6)) #Size of Graph
z = np.e**(2*np.pi*1j*k/n)# Imaginary numbers in python is not i but j
plt.plot([0,np.imag(z)],[0,np.real(z)], linewidth=7)
x = np.linspace(0,2*np.pi,100) # code for circle (also best loop ever)
plt.plot(np.cos(x),np.sin(x),'r', linewidth= 5) #code for circle
print(np.imag(z),np.real(z))
plt.grid(alpha=.5)
plt.style.use('dark_background') #background
plt.show()