# 1. Sum the Numbers
# nums=[37,8,9,43,21,23]
# sum=0
# for num in nums:
#   sum+=num
# print(sum)

# 2. Largest Number
# nums=[37,8,9,43,21,23]
# print(max(nums))

# 3. Smallest Number
# nums=[37,8,9,43,21,23]
# print(min(nums))

# 4. Even Numbers

# nums =[37,8,9,42,21,24]
# for num in nums:
#   if(num % 2 == 0):
#     print(num)

# 5. Positive Numbers
# nums =[-1,-3,4,5,7,-8,-10,10]
# for num in nums :
#   if(num>0):
#     print(num) 

 # 6. Positive Numbers II
# nums =[-1,-3,4,5,7,-8,-10,10]
# newlist=[]
# for num in nums:  
#   if (num>0):
#    newlist.append(num)
# print(newlist) 
 # 7. Multiply a list 
# l1=[2,3,5]
# l2=[8]
# l3=[]
# for i in l1:
#   p3=i*l2[0]
#   l3.append(p3) 
# print(l3) 

# # 8. Multiply Vectors
# l1 = [2, 4, 5]
# l2 = [2, 3, 6]
# l3=[]
# size =len(l1)
# for i in range(0,size): 
#   p3=l1[i]*l2[i]
#   l3.append(p3)
# print(l3)

# 9. Matrix Addition
# l2=[]
# l1=[ [2, -2], 
#    [5, 3] ]
# size = len(l1)
# print(size)
# for i in range(0,size):
#     sum=0 
#     for j in range(0,size):
#       sum+=l1[j][i]
#     l2.append(sum)  
# print(l2)    

# 10. Matrix Addition II
# l1 =[[3,1],[4,5]]
# l2 =[[2,1],[2,4]]
# l3=[]
# size=len(l1)
# for i in range(0,size):
#   sum=0
#   sum+=l1[i]+l2[i]
#   l3.append(sum)
# print(l3) 

#  Calculate the result of adding the two matrices. The number in each position in the resulting matrix should be the sum of the numbers in the corresponding addend matrices. Example: to add

# 1 3 
#  2 4
# and

# 5 2 
# 1 0
# results in

# 6 5 
# 3 4

# l1 =[[1,5,1],[2,3,1]]
# l2 =[[1,2,1],[2,3,5]]
# size=len(l1)

# print(size)

# l3=[]
# for i in range(size):
#    l4=[]
#    for j in range(len(l1[i])):
#       result=0   
#       result+=l1[i][j]+l2[i][j] 
#       l4.append(result)
#    l3.append(l4)
# print(l3)    
  




 
