Loading output library...

EGR 103 Spring 2019

#EGR-103-Spring-2019

Exam 1 Review

#Exam-1-Review

Quick Survey

#Quick-Survey

The very basics

#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:

#Quick-Exercise:

What do the following output? Take 2 minutes.

Working with variables

#Working-with-variables

Importing Modules

#Importing-Modules