Python Tutorial in Hindi | Complex Datatype in Python | complex() function in Python

preview_player
Показать описание
Python Tutorial in Hindi | Complex Datatype in Python | complex() function in Python | Python Tutorial for Beginners in Hindi
This video is part of python tutorial for beginners in hindi. In this video, I have explained about complex datatype in python. Complex datatype is for complex numbers. There are many real-life uses of complex numbers .So, many programming languages included complex datatype and python is one of them. Python has complex() inbuilt function for converting number to complex number. Let's see it's syntax and how to use it.
queries covered:-
1) complex datatype in python
2) complex() function in python
3) python tutorial for beginners in hindi

Hello guys,welcome to codeyug to build your computer science skills. Here, you will learn programming tutorials and computer science tutorials from basics to advanced.

source code :-
Thanks for watching this video
Subscribe codeyug for more programming tutorials.
About this channel:-
This channel provides free tutorials on programming,coding,web development.There are programming tutorials which covers from basics to advanced absolutely in hindi.

Our social links:-
creator:-
------shantanu kejkar-------
#complex #python #python3 #codeyug #shantanu #complex() #numbers
Рекомендации по теме
Комментарии
Автор

#Notes
#complex number
""" A complex number has real and imaginary part components.(a+bj)
"""
num = 3+ 89j
print(num)
print(type(num))

num1= 2.0+ 34j
print(type(num1))
print(num1.real)
print(num1.img)

"""use to convert number or string to complex numbers
syntax :
complex(real, imaginary)

both are optional """

num=complex(7, 8)
print(num)
#output : (7+8j)

num1 = complex (9)
print(num1)
#output : (9+0j)

print(complex())
#output : 0j

num2 = complex(4.0, 7)
print(num2)
#output : (4.0+7j)

print(complex('7'))

num3 = 70
print(num3 )
del num3

KaranSinghD-yjep
Автор

j ke alawa dusra character lagane se error kyun hota hai

parwatisirka
Автор

Can you explain why this programme is returning these values :

num = complex((not not not not True), 5)
print(num)

Output :
1+5j

But the twist is here,

num = complex((not not not True), 5)
print(num)

Output :
5j
Can you please explain ?

priyeshpandey
Автор

Sir mysql playlist completed hai ki abhi aur bhi videos bache huye hai?

ashishthaakur
Автор

Bhai ap kisse pdhte ho net ya book se topic by topic padhe

saurabhshukla