Размер шрифта
-
+

Python Handbook For Beginners - стр. 2

4 What Can You Create With Python?

Today, Python is used in various applications, including social media, artificial intelligence, and games like Civilization, Battlefield, World of Tanks, etc. Let's take a closer look at the examples.


Social Media

Billions of people use services like Facebook, Instagram, Reddit, Pinterest, and Quora. All of the mentioned services implement Python and its powerful features for data processing.


Search Engines

Major search engines like Google, Yahoo!, Yandex, Mail.ru use Python in their products for the same reason as mentioned above. Python is very efficient for data processing and management. It's also a dominating programming language for artificial intelligence algorithms that comprise a considerable part of search engine services.


Video Games

Popular video games like Civilization, Battlefield, and World of Tanks use this Python in their architecture. Its application is growing in game development due to the constant improvement and release of specific Python game dev frameworks and libraries.


Streaming and Cloud Storage

Youtube, Netflix, Spotify, and Dropbox use Python. Worth mentioning that Guido van Rossum has been working in the Dropbox company from 2013 until his official retirement in 2019.


Space And Neural Network

NASA uses Python in their Workflow Automation Systems, while SpaceX uses Python for testing.


Tesla uses Python too. Its developers build Autopilot neural network initially in Python for rapid iteration; Python's syntaxis is clean and minimalistic. It allows building and testing functional prototypes fast.

CHAPTER ONE: LET’S GET CODING!

1 Your First Line Of Code

Any, even the most advanced python program, starts with the first line of code. Here is an example of a simple program that has just one line of code. The only thing the program does is it outputs the message: "Hey! This is my first line of code!"

Open the console and write the following:

print("Hey! This is my first line of code!")

Don't worry. We'll learn what this code means in the following chapters. Now it's essential to get you going! When done, run the code by hitting the green play button. Here is the result you should get:



Well done! You've just started and have already written your first simple program.

2 What Is a Program?

Even if it was just a single line of code, we've created a program. Like those that make computers work.

But what is a program? A program is a set of instructions and rules for a computer written in a programming language. If that makes sense, let's go on and reinforce what we have learned. Here is the code I've shuffled. It will help if you put it so that it would make it work.

Страница 2