Python For Dummies
eBook - ePub

Python For Dummies

Stef Maruch, Aahz Maruch

Buch teilen
  1. English
  2. ePUB (handyfreundlich)
  3. Über iOS und Android verfĂŒgbar
eBook - ePub

Python For Dummies

Stef Maruch, Aahz Maruch

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

Python is one of the most powerful, easy-to-read programming languages around, but it does have its limitations. This general purpose, high-level language that can be extended and embedded is a smart option for many programming problems, but a poor solution to others.

Python For Dummies is the quick-and-easy guide to getting the most out of this robust program. This hands-on book will show you everything you need to know about building programs, debugging code, and simplifying development, as well as defining what actions it can perform. You'll wrap yourself around all of its advanced features and become an expert Python user in no time. This guide gives you the tools you need to:

  • Master basic elements and syntax
  • Document, design, and debug programs
  • Work with strings like a pro
  • Direct a program with control structures
  • Integrate integers, complex numbers, and modules
  • Build lists, stacks, and queues
  • Create an organized dictionary
  • Handle functions, data, and namespace
  • Construct applications with modules and packages
  • Call, create, extend, and override classes
  • Access the Internet to enhance your library
  • Understand the new features of Python 2.5

Packed with critical idioms and great resources to maximize your productivity, Python For Dummies is the ultimate one-stop information guide. In a matter of minutes you'll be familiar with Python's building blocks, strings, dictionaries, and sets; and be on your way to writing the program that you've dreamed about!

HĂ€ufig gestellte Fragen

Wie kann ich mein Abo kĂŒndigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kĂŒndigen“ – ganz einfach. Nachdem du gekĂŒndigt hast, bleibt deine Mitgliedschaft fĂŒr den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich BĂŒcher herunterladen?
Derzeit stehen all unsere auf MobilgerĂ€te reagierenden ePub-BĂŒcher zum Download ĂŒber die App zur VerfĂŒgung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die ĂŒbrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den AboplÀnen?
Mit beiden AboplÀnen erhÀltst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst fĂŒr LehrbĂŒcher, bei dem du fĂŒr weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhĂ€ltst. Mit ĂŒber 1 Million BĂŒchern zu ĂŒber 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
UnterstĂŒtzt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nÀchsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Python For Dummies als Online-PDF/ePub verfĂŒgbar?
Ja, du hast Zugang zu Python For Dummies von Stef Maruch, Aahz Maruch im PDF- und/oder ePub-Format sowie zu anderen beliebten BĂŒchern aus Computer Science & Software Development. Aus unserem Katalog stehen dir ĂŒber 1 Million BĂŒcher zur VerfĂŒgung.

Information

Jahr
2011
ISBN
9781118084847
Part I

Getting Started

In this part . . .
**IN a DROPCAP**
You get an overview of the Python programming language, an introduction to its interactive and developer environment, and a walkthrough of the building blocks that make up Python programs.
Chapter 1 describes the history of Python and all the exciting things it’s being used for today. You find out why computers are both the fastest and dumbest things around. Best of all, you discover why it’s called Python anyway.
Chapter 2 lets you talk to Python via its interactive mode and IDLE environment. You write a few basic programs and find out how to get Python to carry out commands for you, how to get Python to tell you things, and how to import tools that let you do even more.
Chapter 3 introduces you to Python’s data types and code blocks, the chunks you use to build programs.
Chapter 4 shows you a working program. You see how all the chunks of a Python program talk to each other, and you find out something about the design philosophies behind Python programs.
Chapter 5 lets you try on a programmer’s hat to understand how programmers work and why they make the design decisions they do. (Unfortunately, it doesn’t explain the relevance of caffeinated sodas to this process — you’ll have to figure that out for yourself.) There’s also a very useful section on strategies for debugging programs, which is a huge part of every programmer’s job.
Chapter 1

Introducing Python

In This Chapter

bullet
The history of Python
bullet
What people use Python for
bullet
Useful concepts for Python programming
Welcome to Python! If you’re the type of person who wants to know what you’re getting into, this chapter is for you. We give you a quick history of Python and its community of developers. You find out what Python is and isn’t good for (the “is” section is much longer than the “isn’t” section) and the most important principles of good Python programming. If you’re new to programming, you’ll see how it’s very similar to a task you’re probably familiar with.

The Right Tool for the Job

Python is a general-purpose, high-level language that can be extended and embedded (included in applications as a tool for writing macros). That makes Python a smart choice for many programming problems, both small and large, and not so good for a couple of computing tasks.

Good uses of Python

Python is ideal for projects that require quick development. It supports multiple programming philosophies, so it’s good for programs that require flexibility. The many packages and modules already written for Python provide versatility and save you time.

The story of Python

Guido van Rossum created Python and is affectionately bestowed with the title “Benevolent Dictator For Life” by the Python community. In the late 1980s, Guido liked features of several programming languages, but none of them had all the features he wanted. Specifically, he wanted a language that had the following features:
bullet
Scripting language: A script is a program that controls other programs. Scripting languages are good for quick development and prototyping because they’re good at passing messages from one component to another and at handling fiddly stuff like memory management so that the programmer doesn’t have to. Python has grown beyond scripting languages, which are used mostly for small applications. The Python community prefers to call Python a dynamic programming language.
bullet
Indentation for statement grouping: Python specifies that several statements are part of a single group by indenting them. The indented group is called a code block. Other languages use different syntax or punctuation for statement grouping. For example, the C programming language uses { to begin an instruction and } to end it. Indentation is considered good practice in other languages also, but Python was one of the first to enforce indentation. Indentation makes code easier to read, and code blocks set off with indentation have fewer begin/end words and punctuation to accidentally leave out (which means fewer bugs).
bullet
High-level data types: Computers store everything in 1s and 0s, but humans need to work with data in more complex forms, such as text. A language that supports such complex data is said to have high-level data types. A high-level data type is easy to manipulate. For exam...

Inhaltsverzeichnis