📜 ⬆️ ⬇️

The book "Hello World! Entertaining programming »

Hello! Our first book for children “The first book of the young programmer. Learning to write programs on Scratch ” was a success with readers and we decided to publish a wonderful book by Warren Sand and Carter Sand. This post is addressed to children and their parents.

image Do you like computer toys? Do you want to try to write something yourself? Imagine how your friends will respect you when you show them a game of your own design, where, when you boot, your name will appear on the screen! “That's cool!” They will say, downloading it from your page. And the most beautiful girl in the classroom, having learned about it, will finally pay attention to you ...
But for this you need to learn how to program. It's complicated? Well, not really.
The main thing is to set a goal and rush to it like a rhino through the jungle. You probably know that there are quite a few programming languages, but we suggest you learn how to “write code”, as professionals say, in Python (Python). It is relatively easy to learn, but has all the necessary functions. The programs on it are fast and easy to read.
This book on Python was written by two people. Adult uncle-programmer and his son. This son was also a teenager quite recently, he knows how it is sometimes dreary to learn, and therefore he made sure that Dad was not explained very abstrusely. So if you never programmed, it doesn't matter. If you are familiar with the basics - e-mail, Internet, mp3, you can run or save the file - you will understand everything. Good luck in mastering!


')
Why python

Why among the many programming languages ​​(and there are really a lot of them!), The authors chose Python? Here are some reasons:
- Python was originally designed in such a way that it was easy to learn. Programs written in Python are read, written and understood much easier than programs in other languages;
- Python interpreter is absolutely free. You can download it as well as many useful and fun programs without spending a dime;
- Python software is open source. And this means, in particular, that any user can extend the capabilities of Python-programs (by adding additional functionality or by simplifying the solution of some tasks). Many users do just that, with the result that there is a large collection of free software available for download;
- Python is not a toy. This language is not only well suited for learning programming, but is also used by thousands of professionals around the world, including NASA and Google employees. And this means that after learning Python, you do not have to switch to a “real” language to create “real” programs. Python allows you to implement a huge number of tasks;
- Python programs can be run on different computers. They run on Windows PCs, Macs, and Linux machines. In most cases, the Python program running at home on a Windows machine will work without any problems with the Mac OS X operating system. You can read this book sitting in front of any computer on which the Python interpreter is installed (and if you want to use the computer with no Python interpreter, you can download it for free);

For fun

It remains to mention just one thing ... One of the most attractive entertainment for children is computer games with graphics and sound. We will learn to write our own games and add graphics and sound to them. Here are examples of the programs we are going to create:

image

The authors think (at least hope) that you will find learning the basics of programming and creating the first programs as fascinating as landing a spacecraft on the surface of the Moon or controlling a skier going down the slope.
This book teaches the basics of programming. It is intended for children, but it is also useful for adults who decide to learn how a computer is programmed. No special programming skills are required to read this book, but it is advisable to have an idea of ​​the basics of working with a computer. Enough skills to use e-mail, search for information on the web, listen to music, play games and write essays. If you can run programs, open and save files, you will have no problems.

What you need

This book teaches programming in Python. The Python interpreter is a free application and is available for download on various sites, including the book site. To study programming with this book you will need the following things.
- The book itself (of course!).
- Computer with Windows, Mac OS X or Linux operating system. All the code examples presented in the book were performed on a computer with a Windows operating system. (On the book site you can find additional recommendations for Mac and Linux users.)
- Basic computer skills (running programs, saving files, etc.). If these things are difficult for you, ask your parents or teacher for help.
- Permission to install the Python interpreter on your computer (from parents, teacher or another person in charge of your machine). We strongly recommend using the Hello World installation program. It will provide you with exactly the version of Python that is required to read this book. The installer can be found on the website .
- The desire to learn and experiment, even if at first you will get far from all.

Work with a book

Here are some tips to help you get the most out of reading this book.
- Personally check all encountered code examples.
ƒƒ- Try to type programs manually.
ƒƒ- Answer control questions.
ƒƒ- Do not worry and have fun!

What's new in the second edition

What remains unchanged. We decided to leave the Python 2 interpreter and not go to Python 3. The reasons for this step are explained in Chapter 1. And now the innovations that appeared in the second edition.
- We added color and notes explaining the difference between Python 2 and Python 3.
ƒƒ- A chapter on Python dictionaries has been added to Chapter 12.
ƒƒ- Considering the programming of graphical interfaces in Chapter 20, we have moved from the now not supported PythonCard to the more common PyQt. This application was also used to create the Hangman program in chapter 22 and Virtual Pet in chapter 24.
ƒƒ- In additional chapter 25, the principle of operation of the Skier program was explained in detail, with little or no explanation presented in chapter 10.
ƒƒ- Additional chapter 26 is devoted to the artificial intelligence of robots fighting each other.

More information about the book can be found on the publisher's website .
Table of contents
Excerpt
Examples of pages:






For Habrozhiteley 25% discount coupon - Hello World!

Source: https://habr.com/ru/post/276401/


All Articles