Loading output library...

EGR 103 Spring 2019


Exam 1 Review


Quick Survey


The very basics

  • int
    • binary: x = 0b10
    • octal: x = 0O10
    • hexadecimal: x = 0x10
  • float: x = 4.2, x=10e6,
  • string:
  • Datatypes: type(x)
  • Tuple, List, int, float, string

Tuple vs List:

Tuples are immutable. Lists are not. Try assigning to a list.

Quick Exercise:


What do the following output? Take 2 minutes.

Working with variables


Importing Modules