Please enable JavaScript to use CodeHS

SC Python 2 Glossary

Flashcards

Course:

Module:

Search:

Code General

Code is the name for the instructions you write to a computer in a program.

Code

Programming Language General

A programming language is any set of rules that converts strings, or graphical program elements in the case of visual programming languages, to various kinds of machine code output.

Algorithm General

An algorithm is a set of steps or rules to follow to solve a particular problem.

algorithm, process

Hello World General

Traditionally the very first program you write when learning a programming language, a program that prints "Hello world" to the user.

Print Python

Displaying text on the screen

Declare a Variable JavaScript

Declaring a variable is defining it for the first time.

Declare a Variable

Variable General

A symbol or container that holds a value.

variable

Initialize a Variable JavaScript

Initializing a variable is giving it an initial value.

Concatenation Python

Adding two strings together using the "+" operator.

string variable Python

A variable with text as the value

Integer variable Python

A variable with a whole number as the value

float variable Python

A variable with a decimal number as the value

input() Python

A function that prints a prompt and retrieves text from the user.

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.

Floating Point Numbers Python

Also called floats, floating point numbers represent real numbers and are written with a decimal point dividing the integer and fractional parts.

Arithmetic Operators General

Arithmetic operators include + addition, - subtraction, * multiplication, / division, and % modulus. These operators are used to perform basic mathematical tasks.

Canvas JavaScript

The screen in which our graphics programs are drawn.

Canvas

Coordinate system JavaScript

A coordinate system uses numbers as coordinates to place objects in a geometric space.

coordinate system

properties of an object General

The variables that are attached to the object.

Event JavaScript

An event is an action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.

Event

Callback Function JavaScript

A function passed as a parameter to another function in order to be called later.

Computer General

A person or device that makes calculations, stores data, and executes instructions according to a program.

Computer

Function General

A function is like a command that you get to invent and name. It allows us to break our program into smaller parts, making the program easier to understand.

Print Python

Print Displaying text on the screen.

Computer Science General

The study of computational thinking, the thinking humans need to in order to describe a step by step process to a computer.

Input Output (I/O) General

A general term in programming that refers to the flow of information into and out of a program

Snake Case Python

`snake case` refers to the style of writing in which each space is replaced by an underscore `_` character and the first letter of each word is lowercase.

Boolean Python

A True or False value

Logical Operators Python

Used to make logical associations between boolean values.

Comparison Operator Python

Used to make comparisons between values.

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

else statement Python

Executes code only if all conditions are false

Sequential Programming General

sequential programming refers to programs that are executed sequentially – once through, from start to finish, without other processing executing.

Non-sequential Programming General

Non-sequential Programming refers to a programming paradigm where programs can have multiple tasks being completed at once or out of sequential order.

For Loop Python

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

For Loop Python

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

Pseudorandom JavaScript

Not actually random, but appears to be random

While Loop Python

Lets us repeat code as long as something is true.

Break Python

Exits the current loop and resumes execution at the next statement.

Continue Python

Rejects all the remaining statements in the current iteration of the loop and moves the control back to the top of the loop to continue to the next iteration. Can be used in both while and for loops.

Condition General

A condition is code that you put inside an if statement or while-loop.

Condition

If Else Statement General

Control structure that lets us run either one section of code or another depending on a test.

If Else Statement

Comparison operator General

Used to make comparisons between values.

comparison operator

Function Python

A function is like a command that you get to invent and name. It allows us to break our program into smaller parts, making the program easier to understand.

Parameters Python

Pieces of information you can give to functions when you define them. When the function is called the arguments are the data you pass into the function's parameters. Parameter is the variable in the declaration of the function. Argument is the actual value of this variable that gets passed to the function.

Argument JavaScript

A variable passed as a value to a function

argument

Return Python

Exits a function, optionally passing back an expression to the caller. A `return` statement with no arguments is the same as `return None`.

Scope General

In what part of the program the variable exits

Scope

Namespaces General

a namespace is the collection of variable names that exist at a certain point in your code.

Local variable General

A variable that is restricted to use in a certain scope of a program

Local variable

Exceptions Python

Runtime errors in a program. by default, they stop the program.

Try and Except Python

Programming constructs that can be used to gracefully handle exceptions so that a program can continue in spite of them.

Application Programming Interfaces Java

APIs and libraries simplify complex programming tasks by providing sets of clearly defined methods of communication among various computing components.

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.

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.

Design Thinking General

Design Thinking is an iterative process in which you seek to understand your users, challenge, assumptions, redefine problems and create innovative solutions which you can prototype and test.

Prototype General

A model designed to demonstrate the most basic functionality or basic design of a product, sometimes used as a proof of concept

Test (Design Thinking) General

A chance to get feedback on your solutions, refine them, and make them better.

Copyright General

A law that grants the creator of an original work exclusive rights to its use, distribution, and sale

Information Literacy General

Information literacy is having the ability to find information, evaluate information credibility, and use information effectively.

Artificial Intelligence General

A computer system able to perform tasks that ordinarily require human intelligence

Deepfake General

a video or image of a person in which their face or body has been digitally altered so that they appear to be someone else, typically used maliciously or to spread false information.

Malware General

Any type of software that is designed to intentionally harm or damage a computer or network.

Virus General

A type of malware that attaches itself onto a host program, such as a document. It can cause serious damage to files or an entire device.

Ransomware General

A software that prevents users from accessing their files or network until a ransom is paid.

Spyware General

Once downloaded onto a user’s computer, the software secretly gathers information about a person or organization and sends it to the attacker.

Phishing General

A cybercrime in which a person is contacted by email, telephone or text message by someone who is posing as a legitimate company.

Firewall General

A network security device that monitors and filters incoming and outgoing network traffic.

Digital Footprint General

The information about a particular person that exists on the Internet as a result of their online activity

Cyberbullying General

the use of electronic communication to bully a person

open source software General

Software that is available for anyone to access and modify.

proprietary software General

Software that is owned by an individual or company.

API General

An API (application programming interface) is a set of tools for building programs.

module Python

A file containing Python definitions and statements.

package Python

A collection of related modules.

library Python

A collection of modules and packages.

documentation General

Written instructions detailing the functions, methods, and variables available and how to use them.

data frame General

A data structure that stores and aligns data in a table using rows and columns.

table.dtypes Python

Lists the data types used in each column in the DataFrame

table.shape Python

Prints the number of rows and columns in the format (rows, columns)

table.info() Python

Lists the data types used in each column, non-null values, and memory usage info

table.describe() Python

Lists the descriptive statistics for each column.

table.head(num) Python

Lists the first num rows

table.tail(num) Python

Lists the last num rows

table[a:b] Python

Lists the rows from index a to index b, exclusively (not including b).

data cycle General

A sequence of steps for processing and using data.

quantitative data General

Numerical data that can be counted or measured.

qualitative data General

Data that can be divided into different categories.

series Python

A one-dimensional, labeled array (or list) that is formatted like a single column of a data table.

measure of spread General

Used to describe how data is spread. It also describes the variability of the dataset.

standard deviation General

A measure of how spread out a group of numbers are, calculated by taking the square root of the variance.

variance General

Used to describe how far each number in the dataset is from the mean and calculated by determining the average of the squared differences from the mean.

range General

The difference between the largest number and the smallest number. The larger the range, the larger the spread or dispersion.

interquartile range (IQR) General

The difference between the first and third quartiles. Indicates how spread out the middle 50% of the set of data is. Helps to avoid outliers affecting the data.

first quartile General

Median of the first half of the data or the 25% point.

third quartile General

Median of the second half of the data or the 75% point.

data science General

The process of learning about the world using data and computation.

statistical question General

A question that could have a variety of different answers.