Navigation

  • index
  • next |
  • previous |
  • AM129 documentation »
  • Chapter 3. Python - Basics

Chapter 3. Python - Basics¶

Google drive folder with Jupyter Notebooks used in class: Jupyter Notebooks from class

  • Introduction to Python
    • Reading Materials for This Chapter
    • Fortran vs. Python
    • Running Python
    • Python 2 vs. Python 3?
    • Interactive Interpreter
  • Overview on Python Programming
    • Interactive Python
    • Indentation: In Python indentation is everything!
    • Ending and wrapping lines
    • Comments
    • Python data types
    • Strings
    • Docstrings
    • Lists
    • Tuples
    • Iterators and range
    • Python objects
    • Declaring variables?
    • Copying objects
    • Mutable and Immutable objects
  • Python scripts and modules
    • Importing modules
    • The Python Path
    • Reloading modules
    • Other forms of import
    • Installing new modules and using virtual environments
  • Dictionaries
    • Relational storage
    • Dictionary as a set of counters
    • Dictionaries and lists
    • Dictionaries and memoization
    • Global variables
    • An example study
  • Python functions and lambdas
    • Defining your own functions
    • Special arguments to functions: *args and **kwargs
    • Lambda functions
  • Documentation in Python
    • Documentation suitable for the web
    • Markdown
    • reStructuredText
    • Conversion tools

Logo of AM129

Previous topic

Fortran Example – Newton’s method to find a root

Next topic

Introduction to Python

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • AM129 documentation »
  • Chapter 3. Python - Basics
© Copyright 2024, Ian May, Dongwook Lee, and Sean Riedel. Created using Sphinx 8.0.2.