{ "cells": [ { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# `print('Hello!')`" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "slideshow": { "slide_type": "-" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The Zen of Python, by Tim Peters\n", "\n", "Beautiful is better than ugly.\n", "Explicit is better than implicit.\n", "Simple is better than complex.\n", "Complex is better than complicated.\n", "Flat is better than nested.\n", "Sparse is better than dense.\n", "Readability counts.\n", "Special cases aren't special enough to break the rules.\n", "Although practicality beats purity.\n", "Errors should never pass silently.\n", "Unless explicitly silenced.\n", "In the face of ambiguity, refuse the temptation to guess.\n", "There should be one-- and preferably only one --obvious way to do it.\n", "Although that way may not be obvious at first unless you're Dutch.\n", "Now is better than never.\n", "Although never is often better than *right* now.\n", "If the implementation is hard to explain, it's a bad idea.\n", "If the implementation is easy to explain, it may be a good idea.\n", "Namespaces are one honking great idea -- let's do more of those!\n" ] } ], "source": [ "import this" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# past and present\n", "\n", "From https://en.wikipedia.org/wiki/Python_(programming_language)\n", "- Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.\n", "- Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. Python is often described as a \"batteries included\" language due to its comprehensive standard library.\n", "- Python was conceived in the late 1980s as a successor to the ABC language. Python 2.0, released in 2000, introduced features like list comprehensions and a garbage collection system capable of collecting reference cycles. Python 3.0, released in 2008, was a major revision of the language that is not completely backward-compatible, and much Python 2 code does not run unmodified on Python 3.\n", "- [PSF Python Brochure Project](https://brochure.getpython.info/media/releases/prerelases/psf-python-brochure-vol-1-final-content-preview)" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "From https://www.python.org/\n", "\n", "- **Functions Defined**. The core of extensible programming is defining functions. Python allows mandatory and optional arguments, keyword arguments, and even arbitrary argument lists.\n", "- **Compound Data Types**. Lists (known as arrays in other languages) are one of the compound data types that Python understands. Lists can be indexed, sliced and manipulated with other built-in functions.\n", "- **Intuitive Interpretation**. Calculations are simple with Python, and expression syntax is straightforward: the operators +, -, * and / work as expected; parentheses () can be used for grouping.\n", "- **Quick & Easy to Learn**. Experienced programmers in any other language can pick up Python very quickly, and beginners find the clean syntax and indentation structure easy to learn.\n", "- **All the Flow You’d Expect**. Python knows the usual control flow statements that other languages speak — `if, for, while` and `range` — with some of its own twists, of course. \n", "\n", "Some supporting quotes [here](https://www.python.org/about/quotes/)." ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "From https://docs.python.org/3/\n", "\n", "![](images/Python-doc-page.png)" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# beware of shadows\n", "\n", "Python can be installed in many different ways with respect to different needs.\n", "- https://www.anaconda.com/ \n", "- https://www.spyder-ide.org/\n", "- https://www.sagemath.org/\n", "\n", "We advice to stick to the official one for the sake of being self contained and use an unified environment.\n", "\n", "All such distributions customize the base package for domain-specific domains, in the future you will be able to take into account the one that best suites your needs; for the present, trust the default one.\n", "\n", "Therefore, go head and install the Python interpreter.\n" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "https://www.python.org/downloads/ \n", "\n", "![](images/Python-download.png)" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# welcome to the carousel\n", "\n", "We have just scraped a little bit the surface of a big iceberg.\n", "\n", "Help yourself with the good documentation, otherwise go ahead on the shoulders of:\n", "- [Guido van Rossum](https://g.co/kgs/q5aSbf)\n", "- [Peter Norvig](https://g.co/kgs/SAHeD1)\n", "- [David M. Beazley](https://g.co/kgs/9qkvkY)\n", "- [Alex Martelli](https://g.co/kgs/RqGztj)\n", "- [Tim Peters](https://g.co/kgs/A54z1o)\n", "- [Fredrik Lundh](https://g.co/kgs/UsKs8e)" ] } ], "metadata": { "celltoolbar": "Slideshow", "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.9.0" } }, "nbformat": 4, "nbformat_minor": 1 }