Skip to content

Instantly share code, notes, and snippets.

@bartdorsey
Last active September 28, 2022 17:44
Show Gist options
  • Select an option

  • Save bartdorsey/e574bd1cb3d7821b1de066de72f186ea to your computer and use it in GitHub Desktop.

Select an option

Save bartdorsey/e574bd1cb3d7821b1de066de72f186ea to your computer and use it in GitHub Desktop.
Python Basics

Python Basics

Glossary

  • Character - Characters in python are unicode characters. The computer can only store numbers so each character is stored as a number. See sites like unicode-table.com to find out what character code corresponds to each character.
  • Sequence - In python a sequence is an object that you can iterate over. Strings, lists, the output of range(), are just some examples of sequences.
  • Mapping -

Built-In Types

  • bool - Boolean. A True or False value
  • str - String. A sequence of characters
  • int - An integer value
  • float - A floating point number
  • list - An indexed mutable list of items
  • tuple - An indexed immutable list of items
  • range - A range of numbers
  • dict - A dictionary. A list of items represented by key/value pairs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment