#!/usr/bin/env python
# coding: utf-8

# # addition, subtraction, multiplication and division of complex numbers

# In[4]:


a=7+56j
b=90+25j
print("addition of two complex numbers",a+b)
print("subtraction of two complex numbers",a-b)
print("multiplication of two complex numbers",a*b)
print("division of two complex numbers",a/b)


# # range function

# range function is generally used in loops. it returns a sequence of numbers and its incremented by a value specified by you (default 1) and if not given a starting value,the default starting value is 0

# In[11]:


p=range(6)
for n in p:
    print(n)


# In[12]:


c=range(9,15)
for n in c:
    print(n)


# # question 3

# In[16]:


a=45
b=100
c=b-a
if c>25:
    print("multiplication of a and b is",a*b)
else:
    print("division of a and b",a/b)


# # question 4

# In[24]:


lst=[10,44,54,35,79,33,12,10,99,47] 
for n in lst:
    a=n%2
    if a==0:
        print(n**2-2)


# # question 5

# In[29]:


lst=[1,20,3,34,99,6,7,8,60,70]
for n in lst:
    p=n/2
    if p>7:
        print(n)


# In[ ]:




