part of the number.
This may look complex but let us use an example to make it simple
x = 5 + 9j
y= 9 – 5j
z = x + y
print(z)
The output will be as follow:
(14 + 4j)
Chapter Review
A variable is a storage location, which has a name assigned to it
Variables must begin with a letter. However, they can have underscores and
numbers
Variable declaration: variable_name = value
Strings are a series of characters enclosed in quotation marks
Python data types include numbers, tuple, dictionary, list, and string.
Python number data types comprise of integer, floating numbers, and complex
numbers.
Do'stlaringiz bilan baham: |