Computational Methods in the Civic Sphere, Winter 2017
  • Docs »
  • Guide »
  • Cookbook of Things

Cookbook of ThingsΒΆ

See it all as a single page: Cookbook (Single Page)

  • Number and string operations
    • Numbers
      • Arithmetic operations
      • Built-in functions for numbers
      • Convert an integer to a float
      • Convert a float to an int; or, truncate a float to a whole number
    • Strings
      • Concatenate 2 strings together
  • Python Sequence Basics
    • Strings
    • Tuples
      • Checking the length of a tuple
      • Accessing a member of a tuple
      • Create an empty tuple using the tuple() class function
      • Convert an iterable object into a tuple
    • List
      • Create a new, empty list
      • Using the list() class function to create a new list
      • Convert an iterable object into a new list object
    • Ranges

See it all as a single page: Cookbook (Single Page)

Next Previous

© Copyright 2017, Dan Nguyen.

Built with Sphinx using a theme provided by Read the Docs.
Computational Methods in the Civic Sphere, Winter 2017
  • Day 16: Thursday, March 2, 2017 - Purely twit bots
  • Syllabus
  • Assignments
  • Guide
    • Python
      • A cookbook of Python common patterns and syntax
        • Cookbook of Things
        • Checklist of Understanding Lists and Dicts
        • csv - reading and writing delimited text data
        • Pillow - Python Imaging Library (aka PIL)
        • Hello Data De-Serialization with JSON and CSV
        • Beautiful Soup - HTML and XML parsing
        • Introduction to AWS with Python and boto3
        • twython - Python wrapper for the Twitter API
        • Creating a Twitter Application for Programmatic Access with Twython
        • Exploring the basics of the Twitter API with Twython
        • A Peak of Grammar Correction with Twython
        • Generating probabilistic coherence with a simple Markov-based bot
    • Command-line Articles
  • Resources