The Python Tutorial

“The Python Tutorial” provides insights into Python programming speed, bottlenecks, and productivity considerations. It delves into the measurement of Python speed, distinguishing between development time and run time bottlenecks. The tutorial explores the significance of understanding where the bottlenecks lie and which aspects, development time or run time, are more crucial for productivity. Additionally, it features articles and projects shared by Christopher Trudeau from PyCoder’s Weekly. This tutorial aims to enhance the understanding of Python programming efficiency and productivity factors, offering valuable insights for Python developers.

12. Virtual Environments and Packages

 The Python Tutorial

12.1. Introduction Python applications will often use packages and modules that don’t come as part of the standard library. Applications will sometimes need a specific version of a library, because th...

📚 Read more at The Python Tutorial
🔎 Find similar documents

13. What Now?

 The Python Tutorial

Reading this tutorial has probably reinforced your interest in using Python — you should be eager to apply Python to solving your real-world problems. Where should you go to learn more? This tutorial ...

📚 Read more at The Python Tutorial
🔎 Find similar documents

15. Floating Point Arithmetic: Issues and Limitations

 The Python Tutorial

Floating-point numbers are represented in computer hardware as base 2 (binary) fractions. For example, the decimal fraction has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction has...

📚 Read more at The Python Tutorial
🔎 Find similar documents

2. Using the Python Interpreter

 The Python Tutorial

2.1. Invoking the Interpreter The Python interpreter is usually installed as /usr/local/bin/python3.10 on those machines where it is available; putting /usr/local/bin in your Unix shell’s search path ...

📚 Read more at The Python Tutorial
🔎 Find similar documents

3. An Informal Introduction to Python

 The Python Tutorial

In the following examples, input and output are distinguished by the presence or absence of prompts ( and … ): to repeat the example, you must type everything after the prompt, when the prompt appears...

📚 Read more at The Python Tutorial
🔎 Find similar documents

5. Data Structures

 The Python Tutorial

This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. 5.1. More on Lists The list data type has some more methods. Here are all of the metho...

📚 Read more at The Python Tutorial
🔎 Find similar documents

6. Modules

 The Python Tutorial

If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to write a somewhat longer program, you are better ...

📚 Read more at The Python Tutorial
🔎 Find similar documents

7. Input and Output

 The Python Tutorial

There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This chapter will discuss some of the possibilities. 7.1. ...

📚 Read more at The Python Tutorial
🔎 Find similar documents

8. Errors and Exceptions

 The Python Tutorial

Until now error messages haven’t been more than mentioned, but if you have tried out the examples you have probably seen some. There are (at least) two distinguishable kinds of errors: syntax errors a...

📚 Read more at The Python Tutorial
🔎 Find similar documents

9. Classes

 The Python Tutorial

Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances of that type to be made. Each class instance can have att...

📚 Read more at The Python Tutorial
🔎 Find similar documents

1. Whetting Your Appetite

 The Python Tutorial

If you do much work on computers, eventually you find that there’s some task you’d like to automate. For example, you may wish to perform a search-and-replace over a large number of text files, or ren...

📚 Read more at The Python Tutorial
🔎 Find similar documents

4. More Control Flow Tools

 The Python Tutorial

Besides the while statement just introduced, Python uses the usual flow control statements known from other languages, with some twists. 4.1. if Statements Perhaps the most well-known statement type i...

📚 Read more at The Python Tutorial
🔎 Find similar documents