Скачать книгу

      Learn Python quick

      By Jens Braun

      Copyright © 2020

      All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law.

      Preface

      This book is written to help you learn Learn Python quick. If you are an absolute beginner in Programming, you'll find that this book explains complex concepts in an easy to understand manner. Examples are carefully chosen to demonstrate each concept so that you can gain a deeper understand of the language. If you are an experienced coder, this book gives you a good base from which to explore Python. The appendices at the end of the book will also provide you with a convenient reference for some of the commonly used functions in Python.

      In addition: "The best way of learning about anything is by doing". At the end of the course, you'll be guided through a project that gives you a chance to put what you've learned to use.

      Table of Contents

       Chapter 1: Python, what Python?

       What is Python?

       Why Learn Python?

       Chapter 2: Getting ready for Python

       Installing the Interpreter

       Using the Python Shell, IDLE and Writing our FIRST program

       Chapter 3: The World of Variables and Operators

       What are variables?

       Naming a Variable

       The Assignment Sign

       Basic Operators

       More Assignment Operators

       Chapter 4: Data Types in Python

       Integers

       Float

       String

       Type Casting In Python

       List

       Tuple

       Dictionary

       Chapter 5: Making Your Program Interactive

       Input()

       Print()

       Triple Quotes

       Escape Characters

       Chapter 6: Making Choices and Decisions

       Condition Statements

       If Statement

       Inline If

       For Loop

       While Loop

       Break

       Continue

       Try, Except

       Chapter 7: Functions and Modules

       What are Functions?

       Defining Your Own Functions

       Variable Scope

       Importing Modules

       Creating our Own Module

       Chapter 8: Working with Files

       Opening and Reading Text Files

       Using a For Loop to Read Text Files

       Writing to a Text File

       Opening and Reading Text Files by Buffer Size

       Opening, Reading and Writing Binary Files

       Deleting and Renaming Files

       Project: Math and BODMAS

       Part 1: myPythonFunctions.py

       Part

Скачать книгу