print("Hello, World!")Hello, World!
Activity notebook for working with strings
Any programmer knows, the first test to show if you know a language it printing Hello, World!
This interactive notebook uses only pure Python, no external resources to get started.
Topics covered:
There are two parts to the syntax above: - print is a builtin function - “Hello, World!” is a string
When print is given a single, string argument like above, it displays that input.
Next, give yourself a little praise, you’re on your way to mastering Python and more.
Set up two variables to work with: - compliment - name
Variables are essential to programming. A variable creates a named container for information.
Variable names can only contain letters, digits, and underscores, must start with a letter or underscore, and can’t be a reserved word (e.g., if, def, return).
In Python, use = to assign values: x = 5.
Creating and working with variables makes programming much easier!
It creates a reusable, custom name.
Something about the above looks off…
It should be on one line.
Still not quite right…
With feeling!