Lec-32: How to Create NumPy Arrays with Execution | Easiest Explanation | Python🐍 for Beginners

Gate Smashers • March 10, 2023
Video Thumbnail
Gate Smashers Logo

Gate Smashers

View Channel

About

Welcome to Gate Smashers, one of the fastest-growing EdTech communities with 2.45M+ learners. 🎓 We provide complete lectures for B.Tech CSE, GATE CSE, UGC NET CS, IT Officer, and PGT/TGT CS exams. On this channel, you will learn step-by-step with real life examples related to DSA, OS, DBMS, CN, TOC, Compiler, Software Engineering, Programming, Placement Prep, AI, ML, Cybersecurity, Cloud, Big Data & Emerging Tech. Why Gate Smashers? 1. Complete syllabus (B.Tech, GATE, NET, IT Officer, PGT/TGT) 2. Core + Advanced (AI, ML, Cloud, Cybersecurity) 3. Simplified explanations to save time 4. Placement & Govt. exam guidance 5. Trusted by millions of learners Our Mission is to empower learners to master Computer Science & succeed in: 1. GATE CSE & NET CS 2. Govt. & IT Officer Exams 3. Teaching (PGT/TGT CS) 4. Careers in AI, ML, Cloud & Cybersecurity 5. Strong CS fundamentals for placements 📌 Gate Smashers – Learn. Practice. Smash Your Goals.

Video Description

In this video, Varun sir will walk you through the easiest way to create NumPy arrays in Python with live execution examples. Whether you’re just starting out or want to strengthen your basics, this beginner-friendly guide will help you understand arrays step by step in the simplest way possible. #pythonprogramming #python -------------------------------------------------------------------------------------------------------------------------------------- Timestamps: 00:00 – Introduction 00:36 – Execute NumPy array 04:33 – execution of 2D array 06:00 – create 1D & 2D array by using range 08:26 – create 1D & 2D array of zeros 09:16 – array of ones -------------------------------------------------------------------------------------------------------------------------------------- 👉Subscribe to our new channel:https://www.youtube.com/@varunainashots ► Python For Beginners(Complete Playlist): https://www.youtube.com/playlist?list=PLxCzCOWd7aiEb4apyN1Y8mD-QuUTr3SPQ ► Class XI Computer Science(Full Syllabus) https://www.youtube.com/playlist?list=PLxCzCOWd7aiGPUtEXMqeQcHYH7ACCJvz7 Other subject-wise playlist Links: -------------------------------------------------------------------------------------------------------------------------------------- ► Microprocessor Playlist: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHL7mF_dRsj4Q9x1NNaZqkh ►Computer Networks : https://www.youtube.com/playlist?list=PLxCzCOWd7aiGFBD2-2joCpWOLUrDLvVV_ ►Design and Analysis of algorithms (DAA): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHcmS4i14bI0VrMbZTUvlTa ►Database Management System: https://www.youtube.com/playlist?list=PLxCzCOWd7aiFAN6I8CuViBuCdJgiOkT2Y ► Theory of Computation https://www.youtube.com/playlist?list=PLxCzCOWd7aiFM9Lj5G9G_76adtyb4ef7i ►Artificial Intelligence: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHGhOHV-nwb0HR5US5GFKFI ►Computer Architecture: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHMonh3G6QNKq53C6oNXGrX ►Operating System: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGz9donHRrE9I3Mwn6XdP8p ►Structured Query Language (SQL): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHqU4HKL7-SITyuSIcD93id ►Discrete Mathematics: https://www.youtube.com/playlist?list=PLxCzCOWd7aiH2wwES9vPWsEL6ipTaUSl3 ►Compiler Design: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEKtKSIHYusizkESC42diyc ►Number System: https://www.youtube.com/playlist?list=PLxCzCOWd7aiFOet6KEEqDff1aXEGLdUzn ►Cloud Computing & BIG Data: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHRHVUtR-O52MsrdUSrzuy4 ►Software Engineering: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEed7SKZBnC6ypFDWYLRvB2 ►Data Structure: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEwaANNt3OqJPVIxwp2ebiT ►Graph Theory: https://www.youtube.com/playlist?list=PLxCzCOWd7aiG0M5FqjyoqB20Edk0tyzVt ►Programming in C: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGmiGl_DOuRMJYG8tOVuapB ►Digital Logic: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGmXg4NoX6R31AsC5LeCPHe --------------------------------------------------------------------------------------------------------------------------------------- Our social media Links: ► Subscribe to us on YouTube: https://www.youtube.com/gatesmashers ►Subscribe to our new channel: https://www.youtube.com/@varunainashots ► Like our page on Facebook: https://www.facebook.com/gatesmashers ► Follow us on Instagram: https://www.instagram.com/gate.smashers ► Follow us on Instagram: https://www.instagram.com/varunainashots ► Follow us on Telegram: https://t.me/gatesmashersofficial ► Follow us on Threads: https://www.threads.net/@gate.smashers -------------------------------------------------------------------------------------------------------------------------------------- ►For Any Query, Suggestion or notes contribution: Email us at: [email protected]

You May Also Like

Affordable Smartphone Upgrade

AI-recommended products based on this video

Loading...
USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

(4,378)
$8.41
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
GuaGua Magnetic Case for iPhone 7 & iPhone 8 & iPhone SE 2022/2020 [Compatible with Magsafe] Translucent Matte Back Slim Thin Anti- Scratch Shockproof Protective Phone Cases for iPhone 8/7/SE-Black

GuaGua Magnetic Case for iPhone 7 & iPhone 8 & iPhone SE 2022/2020 [Compatible with Magsafe] Translucent Matte Back Slim Thin Anti- Scratch Shockproof Protective Phone Cases for iPhone 8/7/SE-Black

(87)
$12.77
FREE delivery Sat, Sep 20 on your first order
200+ bought in past month
Loading...
iPhone Charger Cord Lightning Cable (Apple MFi Certified) 6/6/10ft 3 Pack iPhone Cable Fast Charging Long Apple Charger Cable for iPhone 13 13 Pro 12 Pro 11 SE Max XS XR X, iPad Mini Air, iPod, AirPod

iPhone Charger Cord Lightning Cable (Apple MFi Certified) 6/6/10ft 3 Pack iPhone Cable Fast Charging Long Apple Charger Cable for iPhone 13 13 Pro 12 Pro 11 SE Max XS XR X, iPad Mini Air, iPod, AirPod

(4,371)
$9.99
FREE delivery Sat, Sep 20 on your first order
6K+ bought in past month
Loading...
iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad

iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad

(4,036)
$8.99
FREE delivery Sun, Jun 29 on your first order
2K+ bought in past month
Loading...
Aioneus iPhone Charger [Apple MFi Certified] 6FT USB Charger Cable Fast Charging USB to Lightning Cable Braided Cord Compatible with iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad

Aioneus iPhone Charger [Apple MFi Certified] 6FT USB Charger Cable Fast Charging USB to Lightning Cable Braided Cord Compatible with iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad

(0)
$8.99
Loading...
INIU 45W Power Bank, Ultra Small 10000mAh Portable Charger, USB C in&Out Fast Charging Battery Pack, Travel External Phone Powerbank Compatible with iPhone 16 15 Samsung S25 S24 Google Pixel iPad etc

INIU 45W Power Bank, Ultra Small 10000mAh Portable Charger, USB C in&Out Fast Charging Battery Pack, Travel External Phone Powerbank Compatible with iPhone 16 15 Samsung S25 S24 Google Pixel iPad etc

(520)
$41.42
PrimeFREE delivery Sat, Jun 14
500+ bought in past month
Loading...
Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

Car Carplay Woven Cable for iPhone 16 15 3.3FT USB A to USB C 3.2 Gen 2 Carplay Adapter Wire for iPhone 16 15 Pro Max, iPad Pro/Air, Samsung Galaxy S25/S24/S23/S22/S21 Google Pixel, Car Charger Cable

(213)
$12.99
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel

Google Pixel Buds Pro 2 - Noise Canceling Earbuds - Up to 31 Hour Battery Life with Charging Case - Bluetooth Headphones - Compatible with Android - Hazel

(183)
199.99
PrimeFREE delivery Saturday, June 14
400+ bought in past month
Loading...
VYLEE VYLEE UK Plug Adapter, Foldable UK Travel Plug Adapter, Type G Power Adapter with 4 Outlets 4 USB Ports(2 USB C) Travel Essentials Plug with Bag for USA to Qatar Ireland England Kenya Dubai [1 Pack]
Best Seller

VYLEE VYLEE UK Plug Adapter, Foldable UK Travel Plug Adapter, Type G Power Adapter with 4 Outlets 4 USB Ports(2 USB C) Travel Essentials Plug with Bag for USA to Qatar Ireland England Kenya Dubai [1 Pack]

(2,631)
$18.39
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
VINTAR 2 Pack UK Ireland Travel Plug Adapter, VINTAR Type G Plug Adapter with 2 Outlets, 3 USB Ports and 1 USB C, International Power Adaptor for US to UK British England Scotland Irish London Hong Kong

VINTAR 2 Pack UK Ireland Travel Plug Adapter, VINTAR Type G Plug Adapter with 2 Outlets, 3 USB Ports and 1 USB C, International Power Adaptor for US to UK British England Scotland Irish London Hong Kong

(8,702)
$30.99
FREE delivery Sat, Jun 14 on your first order
50+ bought in past month
Loading...
[3+3 Pack] Glass Screen Protector for Samsung Galaxy S25 FE 5G, 9H Tempered Glass, Ultrasonic Fingerprint Unlock, HD Clear Case Friendly for Samsung Galaxy S25 FE Screen Protector

[3+3 Pack] Glass Screen Protector for Samsung Galaxy S25 FE 5G, 9H Tempered Glass, Ultrasonic Fingerprint Unlock, HD Clear Case Friendly for Samsung Galaxy S25 FE Screen Protector

(28)
$10.79
FREE delivery Sun, Sep 28 on your first order
Loading...
Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)
Best Seller

Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)

(78)
$6.99
FREE delivery Fri, Sep 5 on your first order
1K+ bought in past month
Loading...
Samsung Galaxy Tab S10 Ultra Gray 256GB - AI Tablet, 14.6", AMOLED 2X, Anti-Reflection, 420 Nits, Vapor Chamber, S Pen Included (CAD Version & Warranty)

Samsung Galaxy Tab S10 Ultra Gray 256GB - AI Tablet, 14.6", AMOLED 2X, Anti-Reflection, 420 Nits, Vapor Chamber, S Pen Included (CAD Version & Warranty)

(77)
$1,099.99$869.90
FREE delivery Wed, Aug 27
50+ bought in past month
Loading...
Samsung Galaxy Tab A9+ 27.94 cm(11.0 inch) Display, RAM 4 GB, ROM 64 GB Expandable, Wi-Fi, Tablet, (Gray)

Samsung Galaxy Tab A9+ 27.94 cm(11.0 inch) Display, RAM 4 GB, ROM 64 GB Expandable, Wi-Fi, Tablet, (Gray)

(258)
$199.00
FREE delivery Wed, Aug 27
100+ bought in past month
Loading...
YKYI Cordless Vacuum Cleaner, 40KPa Suction 450W Motor with 2 Modes, 50-Min Runtime & Foldable Design, Cordless Stick Vacuum with LED Display for Home Hard Floors/Pet Hair(Royal Purple)

YKYI Cordless Vacuum Cleaner, 40KPa Suction 450W Motor with 2 Modes, 50-Min Runtime & Foldable Design, Cordless Stick Vacuum with LED Display for Home Hard Floors/Pet Hair(Royal Purple)

(196)
$129.99
Loading...
Long Range Super Endurance Foldable Drone with Camera for Beginners–36+ min Flight Time, WiFi FPV Quadcopter with 2K HD Camera, Brushless Motor, Auto Hover, Follow Me (2 Batteries)

Long Range Super Endurance Foldable Drone with Camera for Beginners–36+ min Flight Time, WiFi FPV Quadcopter with 2K HD Camera, Brushless Motor, Auto Hover, Follow Me (2 Batteries)

(206)
$88.98
FREE delivery Sun, Nov 30
1K+ bought in past month
Loading...
USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

(4,378)
$8.41
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
TORRAS 360°Spin Magnetic Stand for Samsung Galaxy S25 Plus Case (2025), Fit for Magsafe Military Grade Shockproof Slim Protective S25+ Plus Case with Kickstand & Ring Holder, Ostand Spin, Black

TORRAS 360°Spin Magnetic Stand for Samsung Galaxy S25 Plus Case (2025), Fit for Magsafe Military Grade Shockproof Slim Protective S25+ Plus Case with Kickstand & Ring Holder, Ostand Spin, Black

(791)
$53.99
PrimeFREE delivery Sat, Jun 14
Loading...
TORRAS 360° Spin Magnetic Stand for Samsung Galaxy S25 Ultra Case, Fit for Magsafe, Military Grade Slim Protective S25 Ultra Case with Kickstand & Ring Holder, Ostand Spin, Translucent Forested Black

TORRAS 360° Spin Magnetic Stand for Samsung Galaxy S25 Ultra Case, Fit for Magsafe, Military Grade Slim Protective S25 Ultra Case with Kickstand & Ring Holder, Ostand Spin, Translucent Forested Black

(791)
$53.99
PrimeFREE delivery Sat, Jun 14
50+ bought in past month
Loading...
VENINGO for Samsung S25 Ultra Case, Magnetic Case for Samsung S25 Ultra, Slim Luxury Translucent Matte Shockproof Full Body Protection Phone Case Holder Kickstand for Samsung S25 Ultra 6.9'', Black

VENINGO for Samsung S25 Ultra Case, Magnetic Case for Samsung S25 Ultra, Slim Luxury Translucent Matte Shockproof Full Body Protection Phone Case Holder Kickstand for Samsung S25 Ultra 6.9'', Black

(12)
$15.24$13.70
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
Vihibii for Samsung Galaxy S25 Magnetic Case with Kickstand, Compatible with Magsafe & Rugged Shockproof Protective Back & Translucent Matte Slim Phone Case for Samsung S25 6.2" 2025, Teal

Vihibii for Samsung Galaxy S25 Magnetic Case with Kickstand, Compatible with Magsafe & Rugged Shockproof Protective Back & Translucent Matte Slim Phone Case for Samsung S25 6.2" 2025, Teal

(164)
$21.99
FREE delivery Sat, Jun 14 on your first order
50+ bought in past month