{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Hello World!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This is _Hello World!_, my first iPython Notebook" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Hello World!\n" ] } ], "source": [ "print(\"Hello World!\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now let's try printing dynamic content like the current time." ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Hello World! It's Monday January 12, 2015\n" ] } ], "source": [ "import time\n", "print(\"Hello World! It's\", time.strftime(\"%A %B %e, %Y\"))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Things we've learned in this Notebook\n", "--\n", "* creating a new notebook\n", "* basic user interface of a notebook\n", "* printing a static string like _Hello World!_\n", "* debugging syntax errors\n", "* printing a dymamic string with the current time\n", "* a bit more about Markdown (see http://daringfireball.net/projects/markdown/syntax)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "---\n", "This is a template from the [GettingStarted](GettingStarted.ipynb) notebook.\n", "\n", "From [The Art of Literary Text Analysis](https://github.com/sgsinclair/alta) by [Stéfan Sinclair](http://stefansinclair.name) & [Geoffrey Rockwell](http://geoffreyrockwell.com), [CC BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)\n", "\n", "Created January 12, 2015" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.3" } }, "nbformat": 4, "nbformat_minor": 1 }