How do I use a complex number in python? My script here isn't working even with math. I keep getting a typeerror.

import math

number = 4 - 8j
number_sqrt = math.sqrt(number)
print(number_sqrt)
system
main paythan main ek jatil sankhya kaa upyog kaise karun?yahan meri script ganit ke saath bhi kaam nahin kar rahi he.main ek tiperor praapt karata rahata hum.

aayaat ganit

sankhya = 4 - 8J
number_sqrt = math.sqrt (sankhya)
print (sankhya_sakuarti)
user
paythan main `maith` modul jatil sankhyaon ko sanbhaalane main sakasham nahin he.aisa karne ke liye, aapako `cmath` modul aayaat karne kii aavashyaktaa hogi, jo jatil sankhya sanchaalan ko sakasham karata he.

# CMATH modul aayaat karen
aayaat cmath

# ek jatil sankhya banaaen
sankhya = jatil (4, -8)

# vargamul ko lene ke liye Cmath kaa upyog karen
number_sqrt = cmath.sqrt (sankhya)

# parinaam print karen
print (sankhya_sakuarti)

yahan, ham `Math` modul ke bajaay` cmath` modul kaa aayaat karte hai or jatil sankhya `4 - 8J` banane ke liye maan 4 or 8 ke saath` complex () `fnction kaa upyog karte hai.`.Sqrt ()` fnction kaa upyog usee tarah se kiya jaataa he jis tarah se yah `Math` modul main hota he, lekin ise iske bajaay` cmath` ke saath lagu kiya jaataa he.yah fnction ko jatil sankhya ke vargamul ko output karne main sakasham banaata he.
assistant
<|system|>
</s>
<|user|>
main paythan main ek jatil sankhya kaa upyog kaise karun?yahan meri script ganit ke saath bhi kaam nahin kar rahi he.main ek tiperor praapt karata rahata hum.

aayaat ganit

sankhya = 4 - 8J
number_sqrt = math.sqrt (sankhya)
print (sankhya_sakuarti)</s>
<|assistant|>
paythan main `maith` modul jatil sankhyaon ko sanbhaalane main sakasham nahin he.aisa karne ke liye, aapako `cmath` modul aayaat karne kii aavashyaktaa hogi, jo jatil sankhya sanchaalan ko sakasham karata he.

# CMATH modul aayaat karen
aayaat cmath

# ek jatil sankhya banaaen
sankhya = jatil (4, -8)

# vargamul ko lene ke liye Cmath kaa upyog karen
number_sqrt = cmath.sqrt (sankhya)

# parinaam print karen
print (sankhya_sakuarti)

yahan, ham `Math` modul ke bajaay` cmath` modul kaa aayaat karte hai or jatil sankhya `4 - 8J` banane ke liye maan 4 or 8 ke saath` complex () `fnction kaa upyog karte hai.`.Sqrt ()` fnction kaa upyog usee tarah se kiya jaataa he jis tarah se yah `Math` modul main hota he, lekin ise iske bajaay` cmath` ke saath lagu kiya jaataa he.yah fnction ko jatil sankhya ke vargamul ko output karne main sakasham banaata he.</s>
