Skip to playerSkip to main contentSkip to footer
Join Anastasia, Isabella, Ethan, Sophia, and Olivia for Day 32 of our Python for AI series! 🚀 Learn how to install Python, set up VS Code, and run your first scripts: “Hello, World!” and a NumPy array demo. Anastasia and Isabella guide you, with Ethan explaining every line of code! Perfect for beginners. 💻 Get ready for Day 33: Python Basics: Variables and Data Types. Subscribe, like, and share your code in the comments! Join our Discord or X community for more tips!

🔗 Links:

Python: python.org
VS Code: code.visualstudio.com
Discord: discord.com/channels/1397945816349675600/1397945819260391521
#PythonForAI #LearnPython #AICoding #PythonTutorial

Hashtags:

#Python #LearnPython #PythonForAI #AICoding #PythonTutorial #CodingForBeginners #PythonSetup #AIProgramming #TechTutorial #Python3 #CodingJourney #VSCode #DataScience

Category

📚
Learning
Transcript
00:00Wizards, let's check if Python's on your system. Open a terminal, command prompt on Windows, terminal on Mac or Linux, and type Python, version, or Python 3, version. Let's see if Python's ready.
00:18If you see something like Python 3.11.4, you're ready. If not, don't worry. We'll guide you through installing it step by step. Let's get you set. No Python? We'll fix that.
00:33Wizards, head to python.org and click Downloads to get Python 3.11. It's free and works on Windows, Mac or Linux. One click to Python Power.
00:44This is your starting line. Downloading Python is like picking up a magic wand for AI coding. Follow along, and we'll have you ready in minutes. Ready for any system, Wizards.
00:58Run the Python installer, Wizards. Check Add Python to Path and click Install Now. This makes Python easy to use from any terminal.
01:11Olivia, why is Path so important?
01:13Great question. Path lets you run Python from any terminal without typing its full location. It's like giving Python a shortcut to everywhere. Windows setups, super simple. Path makes Python a breeze.
01:32On a Mac, run the installer from python.org and follow the prompts. It's quick and straightforward. Mac setups quick and easy.
01:40Some Macs have Python 2. Some Macs have Python 2, but we need Python 3 for modern AI projects.
01:46The installer gives you the latest version, Wizards. Python 3 for AI magic.
01:52Most Linux systems have Python 3. Try sudo apt install Python 3 on Ubuntu, or use your distro's package manager, Wizards.
02:03What if Python 4. What if Python's not there, Olivia?
02:06No problem. Download from python.org or use your package manager. Linux loves Python. Linux makes Python easy. Package managers are awesome.
02:21Download VS Code from code.visualstudio.com and install it, Wizards.
02:29Add the Python extension from the Extensions tab. It's a game changer. VS Code's quick to set up.
02:37VS Code is like a magical studio for your code. It highlights errors, suggests fixes, and makes coding feel like an adventure.
02:45Your code's new home, Wizards.
02:48In VS Code, go to the Extensions tab and install the Python extension by Microsoft.
02:54The .py extension tells VS Code and Python it's a Python file. It's like labeling your spellbook before casting spells.
03:02.pi means Python power.
03:04Let's run it, Wizards. In VS Code, open the terminal with ctrl plus or cmd plus and type python3 hello pi. Hit enter to see hello world. Watch your code come alive.
03:18This is your first Python victory. The terminal shows your message, proving your setup works.
03:24It's like Python waving hello back at you. So thrilling. Such a magical moment.
03:31Our second demo uses NumPy, a key AI library. We'll create an array to show Python's power for data science, wizards. NumPy's huge for AI.
03:43Here's the code. Import NumPy as np. arr equals np. Array. 1, 2, 3, print, arranged by. It's a simple array, but it's AI ready. Let's break down this code.
03:59I love how this shows Python's AI potential. Let's see what each line does. So excited for this, wizards.
04:11The print, arranged by, line shows our array as, 1, 2, 3. It's clean compared to a Python list like, 1, 2, 3, with commas.
04:22It looks so sleek. Why does number py skip the commas?
04:30NumPy's designed for data science, so it uses a math-friendly format, skipping commas for a vector-like look, perfect for AI.
04:39So, it's a fancy display for AI data?
04:43Exactly, Olivia. It's all about clarity, wizards.
04:46There you go.
04:58Let's see.
04:59Let's see.
04:59Let's see.
05:00Let's see.
Be the first to comment
Add your comment

Recommended