Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python

Description
  • A tuple is a heterogenous, immutable data type that stores an ordered sequence of things.
  • Heterogenous means that a single tuple can store different types
  • You can access pieces of a tuple using indices
  • You can find the length of a tuple using len
  • You can concatenate tuples with other tuples
Objective

Students will be able to:
* Create and store information in tuples.
* Explain the characteristics of a tuple.

Description
  • A list is a mutable, heterogenous data type that stores an ordered sequence of things.
  • You can convert lists to strings, and strings to lists.
  • You can iterate over lists like you can with strings.
  • A tuple can be stored as one thing in a list.
  • A list can be stored as one thing in a tuple.
Objective

Students will be able to:
* Understand and explain the characteristics of a list.
* Use lists to store and recall information.

Description
  • A list is a mutable, heterogenous data type that stores an ordered sequence of things.
  • You can convert lists to strings, and strings to lists.
  • You can iterate over lists like you can with strings.
  • A tuple can be stored as one thing in a list.
  • A list can be stored as one thing in a tuple.
Objective

Students will be able to:
* Understand and explain the characteristics of a list.
* Use for loops to go through items in a list.

Description
  • Methods are like functions that you call on objects
  • List Methods can be called on lists
Objective

Students will be able to:
* Apply useful list methods to alter and access information about a list.

Description

We learn what simulations are, how they are used, and we simulate gravity and Conway’s Game of Life.

Objective

Students will be able to:
* Explain how simulations can be used to simulate real-life events.
* Create a basic computer science simulation

Description

SWBAT complete a 15 question unit quiz.

Objective

SWBAT complete Unit Quiz.