Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Python5

The document provides information on downloading and using Python, including the basic features available from python.org and the Microsoft Store. It suggests starting with basic software for learning before upgrading to more advanced editors like Anaconda or Visual Studio Code. The document also introduces the Python IDE, interactive and scripting modes, and includes a simple 'Hello World' example to get started with Python programming.

Uploaded by

suren
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Python5

The document provides information on downloading and using Python, including the basic features available from python.org and the Microsoft Store. It suggests starting with basic software for learning before upgrading to more advanced editors like Anaconda or Visual Studio Code. The document also introduces the Python IDE, interactive and scripting modes, and includes a simple 'Hello World' example to get started with Python programming.

Uploaded by

suren
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

https://www.python.

org
Here you can download the basic Python features in one package, which includes
the Python programming language interpreter, and a basic code editor, or an
integrated development environment, called IDLE. See Figure 2.1
For basic Python programming this is good enough.
For more advanced Python Programming you typically need a better Code Ed-
itor and additional Packages.
For the basic Python examples in the beginning, the basic Python software
from:
https://www.python.org is good enough.
I suggest you start with the basic Python software in order to learn the basics,
then you can upgrade to a better Editor, install addition Python packages (either
manually or or install Anaconda where "everything" is included).
2.6.1 Python Windows 10 Store App
Python 3.7 is also available in the Microsoft Store for Windows 10.
The Microsoft Store version of Python 3.7 is a simpli_ed installer for running
scripts and packages.
Microsoft Store version of Python 3.7 is very basic but it's good enough to run
the simple scripts.
Python 3.7 Microsoft Store edition will receive all updates automatically when
they are released and no manual action is required from your end.
In order to install the Microsoft Store version of Python just open Microsoft
Store in Windows 10 and search for Python.
2.6.2 Installing Anaconda
The Spyder Code Editor and the Python packages (such as NumPy, SciPy, mat-
plotlib, etc) are included in the Anaconda Distribution.
Download and install from:
https://www.anaconda.com
2.6.3 Installing Visual Studio Code
Visual Studio Code code is a simple and easy to use editor that can be used for
many di_erent programming languages.
24
Download and install from:
https://code.visualstudio.com
Getting Started with Python in Visual Studio Code:
https://code.visualstudio.com/docs/python/python-tutorial
25

Chapter 3
Start using Python
In this chapter we will start to use Python in some simple examples.
3.1 Python IDE
The basic code editor, or an integrated development environment, called IDLE.
See Figure 3.1.
Other Python Editors will be discussed more in detail later. For now you can
use the basic Python IDE (IDLE) or Spyder if you have installed the Anaconda
distribution package.
Figure 3.1: Python Shell / Python IDLE Editor
3.2 My _rst Python program
We will start using Python and create some code examples.
26
Example 3.2.1. Plotting in Python
Lets open your Python Editor and type the following:
1 pr in t ( "He l l o World ! " )
Listing 3.1: Hello World Python Example
[End of Example]
An extremely useful command is help(), which enters a help functionality to
explore all the stu_ python lets you do, right from the interpreter. Press q to
close the help window and return to the Python prompt.
You can use Python in di_erent ways, either in "interactive" mode or in "Script-
ing" mode.
The python program that you have installed will by default act as something
called an interpreter. An interpreter takes text commands and runs them as
you enter them - very handy for trying things out.
Yo can run Python interactively in di_erent ways either using the Console which
is part of the operating system or the Python IDLE and the Python Shell which
is part of the basic Python installation from https://www.python.org.
3.3 Python Shell
In interactive Mode you use the Python Shell as seen in Figure 3.1.
Here you type one and one command at a time after the ">>>" sign in the
Python Shell.
1 >>> pr in t ( "He l l o World ! " )

You might also like