O'Reilly logo

Python Crash Course by Eric Matthes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2VARIABLES AND SIMPLE DATA TYPES

image

In this chapter you’ll learn about the different kinds of data you can work with in your Python programs. You’ll also learn how to store your data in variables and how to use those variables in your programs.

What Really Happens When You Run hello_world.py

Let’s take a closer look at what Python does when you run hello_world.py. As it turns out, Python does a fair amount of work, even when it runs a simple program:

hello_world.py

print("Hello Python world!")

When you run this code, you should see this output:

Hello Python world!

When you run the file hello_world.py, the ending .py indicates that the file is a Python ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required