Discover millions of ebooks, audiobooks, and so much more with a free trial

From $11.99/month after trial. Cancel anytime.

Python for Beginners: A Crash Course to Learn Python Programming in 1 Week
Python for Beginners: A Crash Course to Learn Python Programming in 1 Week
Python for Beginners: A Crash Course to Learn Python Programming in 1 Week
Ebook305 pages2 hours

Python for Beginners: A Crash Course to Learn Python Programming in 1 Week

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Ready to start this new journey into the Python's world?

Python is the ideal language to learn for budding developers. It is a modern object-oriented programming language with easy to read code and an extensive internet bank of modules.
It offers high-level dynamic data types, many built-in functions, and operators, classes, garbage collection, and supports dynamic typing. Python runs on just about any device. Python is an OSI approved open-source software application that makes it free to download and install.
Python For Beginners: A crash course to learn Python Programming in 1 Week will take you through the basics of getting started with Python programming step by step. This tutorial will teach you everything you need to know to get you to the next programming level.

The book covers all the Python basics, with follow-along examples and exercises, giving you a hands-on learning approach. By the time you have made your way through the book, you will be ready to tackle the beginner's and a few intermediate projects waiting for you at the end of it.
This book covers where to and how to download and install Python. You will learn how to download and install PyCharm which is an integrated development environment where you will learn to write code. The content covers all the basics such as variables, statements, functions, keywords, data types, and more.

Python For Beginners: A crash course to learn Python Programming in 1 Week has everything you need to learn to comfortably move on to more advanced programming. It is an entry-level tutorial guide that makes Python easy and fun to learn.


Get your copy Now

LanguageEnglish
Release dateAug 25, 2021
ISBN9798201468453
Python for Beginners: A Crash Course to Learn Python Programming in 1 Week

Read more from Brady Ellison

Related to Python for Beginners

Related ebooks

Programming For You

View More

Reviews for Python for Beginners

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Python for Beginners - Brady Ellison

    Introduction

    Python is a general-purpose, high-level, interpreted programming language used for small and large scale coding projects. It has a comprehensive library of modules; it is multi-paradigm and emphasizes code readability.

    Brief History of Python

    Guido van Rossum was the lead developer in the Python development project conceived in the late 1980s. From December 1989 to July 2018, Python was the sole responsibility of Guido.

    In January 2019, Guido, along with other core Python developers, selected a 5-person steering committee to help with Python’s continued growth and development.

    SETL was the most significant influence behind Python’s development. Python was also the successor of the programming language ABC.

    Python was first released to the public in 1991. Python’s coding philosophy is based on providing an advanced developer and easier code readability. Its simple syntax requires a lot less code than most other programming languages.

    One of the first Python releases was version 0.9.0, which was released in February 1991.

    Version 2.0 was released in 2000. Version 2 ended in 2020, with the last update of the release being version 2.7.

    In 2008 Python released version 3.0, which up until the release 3.5.x still supported Windows 7. Version 3.6.x and later no longer supports Windows 7 operating systems. The newer versions from 3.6.x and later also only support 64-bit installers for Windows operating systems.

    Why Python?

    Python grows from strength to strength with each new release. It was designed to be a scripted language meaning there is no need for complex compilers.

    As a programming language, Python is neat, uncluttered, and its simple syntax structures make it easy to learn.

    Python is free to distribute and use due to its OSI-approved open source license.

    Python has a vast collaborating community of developers who continuously update and add-on modules to offer the language greater diversity.

    Python has many third party modules — Python Package Index or PyPI. PyPI enables Python to interface with most of the other programming languages on the market.

    Python is very easy to use and is a powerful language. It is one of the most popular and sought after trades in the current job market.

    Chapter 1: Getting Started with Python

    This chapter will set out the minimum standards a computer must meet to download and install Python. It will also cover the downloading and installation of Python.

    Minimum Requirements for Installing Python

    Before downloading or installing Python onto a Windows or Mac computer, you must ensure that the system meets the minimum requirements. The minimum standards ensure the integrity of the Python program operating performance.

    Windows Requirements

    ●  Windows 10

    ●  64-bit only

    ●  2 GB RAM is the bare minimum

    ●  8 GB RAM is the recommended requirement for optimum performance

    ●  Hard Disk recommended is SSD with at least 2.5 GB free space

    ●  Screen resolution should be at least 1024 x 768

    Mac Requirements

    ●  macOS 10.13 or newer

    ●  2 GB RAM is the bare minimum

    ●  8 GB RAM is the recommended requirement for optimum performance

    ●  Hard Disk recommended is SSD with at least 2.5 GB free space

    ●  Screen resolution should be at least 1024 x 768

    Downloading Python

    When you first download Python, you can get quite confused as there are two active versions of the software.

    Python 2

    Python version 2.7.18 is the latest version of this release. It is still actively used throughout the Python developers community. But it is not being developed or supported; it is the legacy version of Python.

    Many programmers still use it because of the extensive library of modules, as this version has been around since 2000.

    Python 3

    Python version 3 is the latest version of the software and is currently being developed, supported, and maintained by Python. The newest release as of December 2020 was version 3.9.0, the version used throughout this tutorial.

    Installing Python

    To download Python, you will need to go to the Python website, which can be found by copying and pasting the following link into a web browser:

    https://www.python.org/

    The Python.org website will look similar to the image below:

    Choose the Downloads option from the menu bar to download the latest version of Python. At the time this training guide was written/printed, drop-down menus’ right the latest versions of Python and the version used for this tutorial are as follows:

    Windows Systems — Python 3.9.0

    Mac Systems — Python 3.9.0

    The Download for Windows option to the drop-down menus’ right will change if you are using a Mac computer.

    Installing Python 3 for Windows

    When the "Download option on the menu bar is clicked, the Download for Windows" option appears as an option to the right of the drop-down menu.

    Click on the gray "Python 3.9.0" button.

    When you click the button, the following file gets downloaded to your computer’s "Downloads" folder.

    python-3.9.0-amd64.exe

    Go to the "Downloads folder on your computer and double click on the python-3.9.0-amd64.exe" file.

    The first of the "Install Python 3.9.0 (64-bit)" screens will appear and look like the image below.

    Click in the box next to the "Add Python 3.9 to PATH option and ensure the box is checked before you click on the Install Now" option.

    Choose "Yes" to allow the program to make changes to the system.

    The following screen shows the "Setup Progress" of the Python installation onto your computer.

    Once the download is complete; the following screen will appear:

    Click on the "Close" button to finish the installation.

    It is always best practice to restart the machine once you have installed a new application.

    Installing Python 3 for Mac

    When the "Download option on the menu bar is clicked, the Download for Mac OS X" option appears as an option to the right of the drop-down menu.

    Click on the gray "Python 3.9.0" button.

    A pop-up box will appear once you have clicked on the grey button. The Pop-up box will ask you to confirm the download; the message will read:

    Do you want to allow downloads on www.python.org?

    Choose "Allow"

    The following file gets downloaded to the "Downloads" folders on the computer:

    python-3.930-macosx10.pkg

    Go to the "Downloads folder and double-click on the python-3.930-macosx10.pkg and the Python Installer" screen will pop-up.

    Click the "Continue button at the bottom of the Introduction" screen.

    The next option will be the "Read Me" screen.

    Click the "Continue button at the bottom of the Read Me" screen.

    The next option will be the "Licence" screen.

    You can "Read Licence" if you want.

    Click the "Agree button at the bottom of the Licence" screen.

    The "Destination Select" screen will appear.

    Choose the default destination. Take note of the amount of space needed for the installation and make sure there is adequate space on the hard drive.

    Click the "Continue button at the bottom of the Destination Select" screen.

    The next option will be the "Installation Type" screen.

    It is advisable to keep the default selections for the installation folder; for the sake of this tutorial, use the default folder.

    Click the "Install button at the bottom of the Installation Type" screen.

    The following Python packages get installed:

    ●  Python Framework

    ●  GUI Application

    ●  UNIX command-line tools

    ●  Python Documentation

    ●  Shell profile updater

    ●  Install or upgrade pip

    At the "Installer is trying to install new software" screen, login to the Mac user account with administrative rights.

    Click the "Install Software button at the bottom of the Installer is trying to install new software" screen.

    The "Installation" screen is the next screen that will appear. This screen will prepare Python for installation and then start the installation.

    The screen will have a progress bar that will indicate the progress of the Python installation.

    The "Summary screen will display The installation was successful. The software was installed" when the installation has been completed.

    Click the "Close button at the bottom of the Summary" screen.

    It is always best practice to restart the machine once you have installed a new application.

    Using a Python Integrated Development Environment or Code Editor

    Python is a programming language that you are going to be using to write code. To do this, you will need a program to write the code in and execute the written code.

    If you were writing a document, you would need something like Microsoft Word or Google Docs to write your documents’ content. You would need the program to save your document, edit the document, check for mistakes, share the paper,

    Enjoying the preview?
    Page 1 of 1