Adding Matrices in Python

Publié le: 12 septembre 2021
sur la chaîne: DevOps Rulers
61
5

Swapping Function :    • Python program to interchange first and la...  
Print String with Delay of 3 sec :    • Write a Python program to print a string f...  


Adding Matrices in Python
Using Numpy Module Thank you for watching

import numpy as np
#Creating Matrices
X = np.array([[1,2],[3,4]])
Y = np.array([[5,6],[7,8]])

print("Printing First Matrix")
print(X)
print("Printing Sec Matrix")
print(Y)

#Adding
print("Adding Matrix")
print(np.add(X,Y))



#python #programming #coding #programmer #developer #code #software #tech #pythonproblem #function #matrix


Sur cette page du site, vous pouvez voir la vidéo en ligne Adding Matrices in Python durée online en bonne qualité , qui a été Téléchargé par l'utilisateur DevOps Rulers 12 septembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 61 fois et il a aimé 5 téléspectateurs. Bon visionnage!