#31 Python Tutorial for Beginners | Working with Matrix in Python

Telusko July 24, 2018
Video Thumbnail

About

Hey Aliens Welcome to Telusko! We create technical tutorials that take you from beginner to advanced level. You’ll find content on: Core Programming: Java (Beginner to Advanced), Python, C Programming, Kotlin, Scala, JavaScript Frameworks & Tools: Spring Framework, Hibernate, REST API, Android, Blockchain, Spring AI, AI Engineering Computer Science Essentials: Data Structures, Networking, System Design, and more Trending Tech: Cloud, Microservices, and beyond Alongside technical tutorials, we also share motivational videos and host sessions with leading industry experts. We don’t just stop at free tutorials—we also provide paid courses (live and recorded) and corporate training to help professionals and organizations upskill. So, whether you’re just starting out or sharpening your professional skills, there’s always something here for you. 📩 Business Inquiries: [email protected] 🎓 Explore Live & Recorded Courses: https://telusko.com/

Video Description

Check out our courses: Java Spring Boot AI Live Course: https://go.telusko.com/JavaSpringBootAI Coupon: TELUSKO20 (20% Discount) AI Powered DevOps with AWS - Live Course :- https://go.telusko.com/AIDevOps-AWS Coupon: TELUSKO20 (20% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Udemy Courses: Spring: https://go.telusko.com/udemyteluskospring Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF Matrix Multiplication Theory : https://goo.gl/omPVAS Watch till 7:12 mins In this lecture we will learn: - What are mutli-dimeansional arrays? - Two-dimensional array in Python - Attributes available with a two-dimensional array - How to convert the dimensions of an array - Matrix in Python - How to convert an array into a matrix? - Functions used with a matrix #1 - If a list contains multiple elements of the same type, then it is known as an array. - When an array contains another array inside it, then it is known as a two-dimensional array. - Two- dimensional array can be defined as an array within another array. - It is a collection of rows and columns. Syntax of a two-dimensional array:- arr= array([ [arr1], [arr2] ]) #2 Attributes with two-dimensional arrays:- - dtype attribute returns the data type of the data with which you are working. - ndim attribute gives the number of dimensions of an array and also gives the rank to an array. e.g, if it is a single-dimensional array then it will return 1 if three-dimensional array then it returns 3. It will also give the rank whether it is 1-D, 2-D and many more. - shape attribute returns the number of rows and the number of columns present inside an array. - size attribute gives the size of the entire block. - flatten attribute convert the 2-dimensional array into a single-dimensional array. #3 - reshape attribute is used to change the dimensions of an array. We can convert a 1-D array to a 2-D array by using the reshape method. - reshape(r,c) method takes two parameters ie., the number of rows and a number of columns, that you want in an updated array. - reshape attribute also works with a 3-D array. In 3-D, we have multiple 2-D arrays. And a 2-D array contains multiple 1-D arrays. #4 - Matrices can be defined as a two-dimensional array that has multiple rows and columns. - A matrix that has one row and multiple columns is known as a row matrix. - A matrix having one column and multiple rows is known as a column matrix. - Both the row matrix and column matrix is in the form of a single-dimensional array. - A separate format available for a matrix in python. #5 Functions with matrix:- - matix() attribute is used to convert an array into a matrix format. - We can also create a matrix without using an array. It can also be created directly by using the matrix() attribute. matrix('1 2 3 6 ; 4 5 6 7') In this, values are separated by using the space, and rows are separated by using the semicolon. - A diagonal () function can be used to only print the diagonal elements of an array. - min() function will give the minimum value element from an array. - max() function is used to get the maximum value element of an array. - There is a certain number of rules that should be followed in matrix multiplication. Github :- https://github.com/navinreddy20/Python- Python for Beginners :- http://bit.ly/3JOLQhl Java and Spring Framework For beginners with Spring Boot : - http://bit.ly/3LDMj8D Java Tutorial for Beginners (2023) :- http://bit.ly/3yARVbN Editing Monitors : https://amzn.to/2RfKWgL https://amzn.to/2Q665JW https://amzn.to/2OUP21a. Editing Laptop : ASUS ROG Strix - (new version) https://amzn.to/2RhumwO Camera : https://amzn.to/2OR56AV lens : https://amzn.to/2JihtQo Mics https://amzn.to/2RlIe9F https://amzn.to/2yDkx5F Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ?sub_confirmation=1 Telusko Hindi : https://www.youtube.com/channel/UCitzw4ROeTVGRRLnCPws-cw?sub_confirmation=1 Donation: PayPal Id : navinreddy20 Patreon : navinreddy20 http://www.telusko.com/contactus

You May Also Like

Essential DJI Mini 3 Pro Accessories

AI-recommended products based on this video

Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming
Best Seller

DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming

(4,886)
$136.00$130.56
FREE delivery Thu, Sep 4
10K+ bought in past month
Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming
Best Seller

DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming

(4,886)
$136.00$130.56
FREE delivery Thu, Sep 4
10K+ bought in past month
Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming
Best Seller

DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming

(4,886)
$136.00$130.56
FREE delivery Thu, Sep 4
10K+ bought in past month
Loading...
ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

(13,939)
109.99
FREE delivery Saturday, June 14
9K+ bought in past month
Loading...
Anker iPhone 16 Charger, 2-Pack 20W Fast USB C Charger Block, for iPhone 16/16 Pro Max/15 Series/iPad Pro and More (White, 2 Pack & 2 Cable)

Anker iPhone 16 Charger, 2-Pack 20W Fast USB C Charger Block, for iPhone 16/16 Pro Max/15 Series/iPad Pro and More (White, 2 Pack & 2 Cable)

(16,565)
13.99
PrimeFREE delivery Saturday, June 14 on orders shipped by Amazon over $35
10K+ bought in past month
Loading...
Anker Power Bank(PowerCore 10K),Compact Travel-Ready 10,000mAh Battery Pack with PowerIQ Charging Technology,5V/3A High-Speed Charging for iPhone,iPad,and More (USB-C Input and Output(Black),1pack) ClimatePartner certified

Anker Power Bank(PowerCore 10K),Compact Travel-Ready 10,000mAh Battery Pack with PowerIQ Charging Technology,5V/3A High-Speed Charging for iPhone,iPad,and More (USB-C Input and Output(Black),1pack) ClimatePartner certified

(109,961)
$17.99$17.81
FREE delivery Fri, Aug 8 on $35 of items shipped by Amazon
10K+ bought in past month
Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming
Best Seller

DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming

(4,886)
$136.00$130.56
FREE delivery Thu, Sep 4
10K+ bought in past month
Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming
Best Seller

DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming

(4,886)
$136.00$130.56
FREE delivery Thu, Sep 4
10K+ bought in past month
Loading...
PULIDIKI Car Cleaning Gel Car Clean Putty, Universal Car Interior Cleaner Slime, Perfect Cleaning Kit Supplies, Auto Detailing Tools Accessories, Dust Remover Gifts for Men Women
Best Seller

PULIDIKI Car Cleaning Gel Car Clean Putty, Universal Car Interior Cleaner Slime, Perfect Cleaning Kit Supplies, Auto Detailing Tools Accessories, Dust Remover Gifts for Men Women

(95,477)
$6.99
PrimeFREE delivery Sun, Sep 21 on $35 of items shipped by Amazon
20K+ bought in past month
Loading...
Garbage Disposal Cleaner Deodorizer Tablets - 24 Pack, New Powerful XL Foaming Tablet - Fresh Citrus Foam Sink Garburator Disposer Freshener, Natural Kitchen Drain Cleaning Care - 1 Year Supply
Best Seller

Garbage Disposal Cleaner Deodorizer Tablets - 24 Pack, New Powerful XL Foaming Tablet - Fresh Citrus Foam Sink Garburator Disposer Freshener, Natural Kitchen Drain Cleaning Care - 1 Year Supply

(9,454)
$15.09
FREE delivery Sun, Jun 22 on $35 of items shipped by Amazon
100K+ bought in past month
Loading...
FIXSMITH Microfiber Cleaning Cloth - Pack of 24, Multi-Functional Cleaning Towels, Size: 12 x 16 in, Highly Absorbent Cleaning Rags, Lint-Free, Streak-Free Cleaning Cloths for Car Kitchen Home Office

FIXSMITH Microfiber Cleaning Cloth - Pack of 24, Multi-Functional Cleaning Towels, Size: 12 x 16 in, Highly Absorbent Cleaning Rags, Lint-Free, Streak-Free Cleaning Cloths for Car Kitchen Home Office

(17,084)
12.99
PrimeFREE delivery Saturday, June 14 on orders shipped by Amazon over $35
300+ bought in past month
Loading...
Airbrush Kit with Air Tank Compressor 2 Dual-Action Gravity Airbrush with 0.2mm 0.3mm 0.5mm Nozzle Air Compressor with Airbrush Coloring Tool Cleaning Brush for Model Paint Hobby Craft

Airbrush Kit with Air Tank Compressor 2 Dual-Action Gravity Airbrush with 0.2mm 0.3mm 0.5mm Nozzle Air Compressor with Airbrush Coloring Tool Cleaning Brush for Model Paint Hobby Craft

(32)
116.75
PrimeFREE delivery Saturday, June 14
Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month
Loading...
DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming
Best Seller

DJI Mic Mini (2 TX + 1 RX + Charging Case), Wireless Lavalier Microphone for iPhone/Camera/Android, Ultralight, Detail-Rich Audio, 48h Use, Noise Cancelling, Automatic Limiting, Vlog, Streaming

(4,886)
$136.00$130.56
FREE delivery Thu, Sep 4
10K+ bought in past month
Loading...
DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

DJI Mini 4K, Drone with 4K UHD Camera for Adults, Under 249 g, 3-Axis Gimbal Stabilization, 10km Video Transmission, Auto Return, Wind Resistance, 1 Battery for 31-Min Max Flight Time, Intelligent Flight

(1,978)
299.00
FREE delivery June 12 - 17. Details
4K+ bought in past month