Python programming: Getting Started to practice "PDF" full version free download

Source: Internet
Author: User

Python programming: From getting started to practicing. pdf:pdf full version free download https://u253469.ctfile.com/fs/253469-298090768

More ebook Downloads: Http://hadoopall.com/book

Content Introduction

This book is an introductory Python book for all levels of Python readers. The book is divided into two parts: the first part introduces the basic concepts that you must understand in Python programming, including powerful Python libraries and tools such as Matplotlib, NumPy, and Pygal, as well as lists, dictionaries, if statements, classes, files and exceptions, code testing, and more The second part puts the theory into practice and explains how to develop three projects, including simple Python 2D game development How to use data to generate interactive infographic, create and customize simple Web applications, and help readers solve common programming problems and puzzles.

About the author

Eric Matthes

Senior High school science and math teacher, now residing in Alaska, teaches a local python introductory course. He has been writing programs since he was 5 years old.

Translator profile

Ching

Freelance translator; 2000 Professional translation, master translation of books, occasional translation of press releases, soft articles, published translations of 40 more than, including the C + + Prime plus Chinese version of the CCNA Learning Guide, CCNP Route Learning Guide, model-oriented Software architecture: Model system Android App UI design mode "VC choice: Who is the next 1 billion-dollar company," and so on, a total of more than 7 million words; Before the professional translation, engaged in three years of chemical product analysis and development, has done two years magazine and book editor.

Directory

The first part of the basic knowledge
The 1th Chapter starts 2
1.1 Setting up the programming environment 2
1.1.1 Python 2 and Python 3 2
1.1.2 Running Python code snippet 3
1.1.3 Hello World Program 3
1.2 Setting up a Python programming environment in different operating systems 3
1.2.1 Setting up a python programming environment in a Linux system 3
1.2.2 Building a Python programming environment in OS X systems 6
1.2.3 setting up a python programming environment in a Windows system 8
1.3 Troubleshooting Installation Issues 12
1.4 Running a Python program from a terminal 13
1.4.1 running Python programs from the terminal in Linux and OS X systems 13
1.4.2 running a python program from a terminal in a Windows system 13
1.5 Summary 14
Chapter 2nd variables and simple data types 15
2.1 What happens when you run hello_world.py 15
2.2 Variables 16
Naming and using the 2.2.1 variable 16
2.2.2 Avoid naming errors when using variables 17
2.3 String 18
2.3.1 using methods to modify the case of a string 19
2.3.2 Merging (stitching) strings 19
2.3.3 Add a blank by using tabs or newline characters 20
2.3.4 Delete blank 21
2.3.5 Avoid syntax errors when using strings 22
2.3.6 The print statement in Python 2 23
2.4 Number 24
2.4.1 Integer 24
2.4.2 Floating point 25
2.4.3 using function str () to avoid type error 25
2.4.4 integer 26 in Python 2
2.5 Notes 27
2.5.1 How to write comments 27
2.5.2 What kind of notes should be written 28
2.6 Python Zen 28
2.7 Summary 30
3rd. Introduction to the list 31
3.1 What is the list 31
3.1.1 Access list Element 32
3.1.2 Index starting from 0 instead of 1 32
3.1.3 using each of the values in the list 33
3.2 Modifying, adding, and deleting elements 33
3.2.1 Modifying a list element 34
3.2.2 Adding elements to the list 34
3.2.3 removing elements from the list 35
3.3 Organization List 39
3.3.1 using the method sort () to sort a list permanently 39
3.3.2 using the function sorted () to sort the list temporarily 40
3.3.3 Backwards Print List 41
3.3.4 determining the length of a list 41
3.4 Avoiding Index errors when using lists 42
3.5 Summary 43
4th Operation List 44
4.1 Traversing the entire list 44
4.1.1 in-depth study cycle 45
4.1.2 performing more actions in the For Loop 46
4.1.3 perform some actions after the for Loop 47
4.2 Avoiding Indentation Error 47
4.2.1 Forget to indent 48
4.2.2 Forget to indent extra lines of code 48
4.2.3 Unnecessary indentation 49
4.2.4 unnecessary indentation after Loop 49
4.2.5 omitted the colon 50
4.3 Creating a value List 51
4.3.1 using function range () 51
4.3.2 using range () to create a list of numbers 51
4.3.3 perform simple statistical calculations on a list of numbers 53
4.3.4 List resolution 53
4.4 Using part of the list 54
4.4.1 Slicing 54
4.4.2 traversing slices 56
4.4.3 Copy List 56
4.5 RMB Group 59
4.5.1 Defining tuples 59
4.5.2 traversing all values in tuples 59
4.5.3 Modifying tuple variables 60
4.6 Setting the Code format 61
4.6.1 Format Setup Guide 61
4.6.2 Indent 61
4.6.3 President 61
4.6.4 Blank Line 62
4.6.5 Other formatting Guides 62
4.7 Summary 63
5th. If statement 64
5.1 A simple example 64
5.2 Piece Test 65
5.2.1 Check for Equality 65
5.2.2 Check if equality is not considered case 65
5.2.3 Check for unequal 66
5.2.4 Comparison Number 67
5.2.5 checking Multiple conditions 67
5.2.6 Check if a specific value is included in the list 68
5.2.7 Check if a specific value is not included in the list 69
5.2.8 Boolean expression 69
5.3 If Statement 70
5.3.1 Simple If statement 70
5.3.2 If-else Statement 71
5.3.3 If-elif-else Structure 72
5.3.4 using multiple elif code blocks 73
5.3.5 omitting the Else code block 74
5.3.6 testing Multiple conditions 74
5.4 Using the IF statement to process a list 76
5.4.1 Checking for special elements 77
5.4.2 determine that the list is not empty 78
5.4.3 Using multiple lists 78
5.5 Format The IF statement 80
5.6 Summary 80

Python programming: Getting Started to practice "PDF" full version free download

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.