print("hi")

A First Program

Follow these steps:

  1. create a new file (File → New Window)
  2. type in: print("Hello world!")
  3. run your program (Run → Run Module)
    • you will be prompted you to save your file
    • save your file as hello.py (make sure you keep the .py extension!)

Let's Take a Closer Look at "Hello World" …

print("Hello world!")

SPACE!

print  (      "Hello world!")
        print("Hello world!")

Print

print("Hi", "there")

A Quick Note About Functions

a_function_name("argument 1", 2, 3.0)

A String

One Last Look…

print("Hello world!")

A Reminder About a Neat Trick

Again… as mentioned previously, you can use help(thing) in the interactive shell to show information about built-in functions and other Python features:

>>> help(print)

Some More New Stuff

Let's Move on to Values and Data Types