Introdcution to Python Flashcards
Program
Set of instructions for a computer to follow
Assignment Statement
Places an object in memory
Variable
A connection between a name in the code and some data in the computer’s memory.
Object
Data that is assigned to a variable
String
A string of characters, written inside quotes
Integer
A whole number with no fraction or decimal part
List
Square brackets with commas
Module
A file that has a collection of useful code that can be used in other python programs
Method
A named block of code that can be called to do something
Import Statement
Importing a module
Method Call
Calling a method from within a module
Syntax Errors
When you write something that doesn’t make sense in the grammar of the language
Usage Errors
When you ask the computer to do something that doesn’t make sense.
Logic Errors
What you wrote isn’t what you meant
Function
Named blocks of code that doesn’t run until we till it to, core of every programmer’s work
Statements
A piece of code that provides complete instructions for some action
Simple Statement
Statements that don’t contain any other statements inside of them (import turtle)
Compound Statement
A compound statement contains other statements inside of it
Conditional Statements
Code that can do something different depending on the value of a given condition. Tells Python to run some code only when a certain condition is true.
Function Call
A statement that makes a function run
Passing
Giving input to a function
Argument
The information being passed to a function
Method
A function that is associated with an object (special function)
Call Statement
A statement that when it is run, executes a block of code. Provides input