Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Phyton notes

Rating
-
Sold
-
Pages
1
Uploaded on
07-06-2025
Written in
2024/2025

The notes is based on phyton programming language it covers the basics of phyton

Institution
Course

Content preview

This chapter dives into the world of Python distributions the various ways you can
actually run Python code. Pythons popularity means flexibility in execution environments,
encompassing both traditional installations and no-install options.
Traditional Installation: CPython Beyond
The default, and most common, distribution is CPython, implemented in C. However, Python isnt
limited to C You also have Jython written in Java and IronPython written in C#, expanding Pythons
reach to different platforms. A standard CPython installation, accessible by downloading directly
from python.orghttps://www.python.org/, bundles three key components:
 Python Interpreter: The core engine that executes your Python code.
 IDLE: An Integrated Development and Learning Environment GUI offering both interactive
and script modes.
 pip: The package manager, crucial for installing and managing external libraries.
Running Python: Interactive vs. Script Mode
There are two fundamental ways to execute your code. Interactive modedemonstrated by typing
python in the command lineis perfect for quick testing. Its a REPL Read-Eval-Print Loop: you type
a command, Python reads it, evaluates it, prints the output, and then loops back for the next
command. Think of it like a calculator: 5 + 5 directly yields 10, and 24569874 * 23598 will give the
result instantly. You can even use printhello to display text.
Script mode involves writing a sequence of commands in a file e.g., hello.py and letting the
interpreter execute the entire script. You can use IDLE for this, writing code in a new file and saving
it with a .py extension, or explore other IDEs like Visual Studio Code, PyCharm, and Spyder.
Beyond the Default: Anaconda Google Colab
The video then highlights powerful alternatives:
 Anaconda: A distribution pre-loaded with numerous scientific libraries, making it ideal for
data science and machine learning. It introduces Jupyter Notebooks, a web-based
interactive environment fantastic for learning and experimentation. Jupyter Notebooks use
cells that can be run individually, making it easy to test and iterate. They feature features like
adding, deleting, shifting and running cells. Crucially, Anaconda does not require internet
access to run Jupyter.
 Google Colab: A completely no-install option. It provides a Jupyter Notebook environment
accessible directly through your web browser, eliminating the need for local installation. Its
demonstrated with a quick 5 + 5 example, again yielding 10.
Visual Studio Code: A Popular IDE
For more robust development, the video showcases Visual Studio Code VS Code, a widely-used
IDE in the industry. After installation, create a folder and a hello.py file containing printhello. You can
then run the script using the terminal with the command python hello.py.
Key Takeaway:
The beauty of Python lies in its versatility. Whether you prefer a standard installation, a data science
powerhouse like Anaconda, a cloud-based solution like Google Colab, or a professional IDE like VS
Code, theres a Python environment perfectly suited to your needs. Dont hesitate to explore these
options and find what works best for you

Written for

Institution
Secondary school
Course
School year
1

Document information

Uploaded on
June 7, 2025
Number of pages
1
Written in
2024/2025
Type
Class notes
Professor(s)
Sneha
Contains
All classes

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
johanannathan

Get to know the seller

Seller avatar
johanannathan Self
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
10 months
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions