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

Only $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
Ebook304 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

Related articles

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

    Python For Beginners

    A crash course to learn Python Programming in 1 Week

    Brady Ellison

    © Copyright 2021 - All rights reserved.

    The content contained within this book may not be reproduced, duplicated, or transmitted without direct written permission from the author or the publisher.

    Under no circumstances will any blame or legal responsibility be held against the publisher, or author, for any damages, reparation, or monetary loss due to the information contained within this book, either directly or indirectly.

    Legal Notice:

    This book is copyright protected. It is only for personal use. You cannot amend, distribute, sell, use, quote, or paraphrase any part, or the content within this book, without the consent of the author or publisher.

    Disclaimer Notice:

    Please note the information contained within this document is for educational and entertainment purposes only. All effort has been executed to present accurate, up to date, reliable, complete information. No warranties of any kind are declared or implied. Readers acknowledge that the author is not engaged in the rendering of legal, financial, medical, or professional advice. The content within this book has been derived from various sources. Please consult a licensed professional before attempting any techniques outlined in this book.

    By reading this document, the reader agrees that under no circumstances is the author responsible for any losses, direct or indirect, that are incurred as a result of the use of the information contained within this document, including, but not limited to, errors, omissions, or inaccuracies.

    Table of Contents

    Introduction

    Brief History of Python

    Why Python?

    Chapter 1: Getting Started with Python

    Minimum Requirements for Installing Python

    Windows Requirements

    Mac Requirements

    Downloading Python

    Installing Python

    Installing Python 3 for Windows

    Installing Python 3 for Mac

    Using a Python Integrated Development Environment or Code Editor

    What is an Integrated Development Environment (IDE)?

    What is a Code Editor?

    The Differences Between an IDE and a Code Editor

    Python Coding Environment

    Top 5 Python IDE’s

    Idle

    PyCharm

    PyDev/Eclipse

    Spyder

    Thonny

    Top 5 Python Code Editors

    Atom

    GNU Emacs

    Notepad++

    Vim

    Visual Studio Code

    PyCharm

    PyCharm for Windows

    PyCharm for Mac

    Running Python

    Hello Me

    Chapter 2: Getting Started with the Basics

    PyCharm Screen

    Drawing Basic Shapes with the Print Function

    Working with the Print() Function

    Escape Characters

    Chapter 3:

    Statements, Comments, Variables, and Index

    Statements

    The Importance of Indentation

    Comments

    Single-line Comments

    Multi-line Comments

    Variables

    Working With Variables

    Creating, Assigning, and Implementing a Variable

    Changing Variables

    Index

    Index

    Negative Index

    Chapter 4: Data Types — Strings and Numbers

    Strings

    String Operations

    Numbers

    Working with Numbers

    Numbers and Strings Working Together

    Built-in Python Mathematical Functions

    Types of Python Numbers

    Exercise 1

    Exercise 2

    Chapter 5: Data Types — List and Tuple

    List

    List Index

    Functions Used With List Data Type

    2D Lists

    2D List Index

    Tuple

    Chapter 6: Data Types — Set and Dictionary

    Set

    Dictionary

    Chapter 7: Operators

    Arithmetic Operators

    Comparison Operators

    Logical Operators

    Assignment Operators

    Bitwise Operators

    Identity Operators

    Membership Operators

    Chapter 8: Functions, Keywords, and Identifiers

    Functions

    Function Syntax

    Arguments and Parameters

    Variable Scope

    Python Built-In functions

    Keywords

    Identifier

    Rules for Creating Identifiers

    Chapter 9: Loops

    What is a Loop?

    Python Loops

    For Loop

    While Loop

    Loop Control Statements

    Break Statement

    Continue Statement

    Pass Statement

    Using If, Else, and Elif With Loops

    If

    Else

    Elif

    Nested Loops

    Chapter 10:

    Python Package Managers and Modules

    Python Modules

    Python Packages

    Python Package Managers

    Working with Pip

    Chapter 11: Python Practice Projects

    Python Project 1 — Mad Libs Generator

    Python Project 2 — Calculator

    Python Project 3 — Guess the Number

    Python Project 4 — Hangman Game

    Python Project 5 — Rock - Paper - Scissors Game

    Project 6— Tic Tac Toe

    Project 7 — Word Scramble Puzzler

    Bonus Mini Project — Dice Rolling Simulator

    Chapter 12: Working With Date and Time

    Date

    strftime() Method for a Date

    The Calendar Module

    The Calendar Module

    Time

    Time Zones

    Time Ticks

    Time Tuple

    Time Formatting

    Strftime() Method Data and Time Codes

    Chapter 13:

    Work With Date and Time Practice Projects

    Project 8 — Calculate My Age

    Project 9— Is it a Leap Year?

    Project 10 — Date vs. Day of the Week

    Project 11 — Clock

    Project 12 - Calendar and Date Picker

    Chapter 14: Python FAQ

    Conclusion

    Other Books from the Author

    References

    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.

    Enjoying the preview?
    Page 1 of 1