Lessons 1 & 2 Flashcards
What is a program?
a list of instructions for manipulating numbers or other symbols
What is a computer?
a device that can follow the instructions in a program and carry out the manipulations
What is the assignment operator in python?
=
Define assignment operator
functions to assign a specific value to a variable
What is the syntax for exponentiation?
**
Define variable
can be thought of as a label for a container than refers to some kind of data or other info stored in a computers memory
What are the containers that refer to some kind of data/info in a computers memory?
objects
math defines a _____ for the functions in the math module
namespace
how do you use ln in python?
import math
a = math.log(10)
What is the class of values that are strings of text characters called?
strings
How do you catenate two strings?
by using the * operator
How do you determine what data type a variable is?
type(variable_name)
What is an integer?
A number without a decimal
What is a float?
A floating point number has a decimal
What does a kernel do?
keeps track of variables and their assigned values and other info that defines the state of the notebook at any point