{ "metadata": { "name": "hello_world" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\"Hello world\" in Python\n", "===\n", "When programmers are learning a new language, we tend to write a one-line program that prints some version of the message \"Hello world!\" this is a simple program that shows whether your computer is properly set up to run Python programs." ] }, { "cell_type": "code", "collapsed": false, "input": [ "print('Hello Python world!')" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Hello Python world!\n" ] } ], "prompt_number": 1 }, { "cell_type": "markdown", "metadata": {}, "source": [ " Note: If you are using Python 2.7, this would be:" ] }, { "cell_type": "code", "collapsed": false, "input": [ "print \"Hello Python world!\"" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Hello Python world!\n" ] } ], "prompt_number": 2 }, { "cell_type": "markdown", "metadata": {}, "source": [ "If it works, congratulations! You just ran your first Python program." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "- - -\n", "[Home](http://nbviewer.ipython.org/urls/raw.github.com/ehmatthes/intro_programming/master/notebooks/index.ipynb) | \n", "[Next: Variables, Strings, and Numbers](http://nbviewer.ipython.org/urls/raw.github.com/ehmatthes/intro_programming/master/notebooks/var_string_num.ipynb)" ] } ], "metadata": {} } ] }