Please enable JavaScript to use CodeHS

Python Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Simulation General

A animated model that represents a real-life thing, process, or situation.

Model General

A set of rules for how things interact within a simulation.

Immutable Java

Unable to change. Strings in Java are immutable, meaning you can't change it once you make it. If you take a substring of a String, or concatenate something to a String, the result is a *brand new* String, rather than a modification of the original.

Data Structure Java

A particular way of organizing data in our programs.

Tuple Python

A heterogenous, immutable data type that stores an ordered sequence of things.

Heterogeneous Python

The items stored can be of any type: numeric, string, boolean, etc.

List Python

A heterogenous, **mutable** data type that stores an ordered sequence of things.

Type Conversion Python

The process of converting the value of one data type (integer, string, float, etc.) to another data type is called type conversion.

Mutable Python

When something is changeable or has the ability to change.

join() Python

The `join()` method takes all items in a collection and joins them into one string

For Loop Python

A for loop lets us repeat code a **fixed number of times.**

List Indexing Python

Accessing certain elements in a list

count() Python

A method that counts occurrences of specific items in a list.

append() Python

Add a particular item to the end of a list.

extend() Python

Takes a list as an argument and extends the current list with the list given as an argument.

sort() Python

sorts the list in ascending order by default.

reverse() Python

reverses the sorting order of the elements.

remove() Python

removes the first occurrence of the element with the specified value.