Lecture 2: Core elements of a program Flashcards
What IDE stands for?
Integrated Development environment
What is the IDE of Python?
IDLE
What is an IDE?
an integrated development environment includes a specialized text editor that provides highlights, auto-completion, and smart indent. it includes a shell editor.
what is the shell?
it is the environment that actually interprets the python code. it includes a syntax highlighter and a debugger.
what are the “objects”?
everything in python is an object, including the code. objects have type.
what is the “type” of an object?
the type tells us the kind of object it is and what we can do with it.
what are the two kinds of types?
scalar & non-scalar
what are the scalar types?
they are the atoms of the programming language, they are indivisible. There’s the notion of a literal for every type, which is how we type it. they are divided into:
Integer, floats, booleans, none.
What is a float type?
they are the type that corresponds to the real numbers
Are floats the same thing as real numbers?
No
What is a float?
A float is a computer scientist approx to real numbers but not quite the same. You can pretend a floating point number is real but not always.
what is a boolean?
they are statements that are either true or false.
What is a none type?
they are used when you want to put in something temporarily.
What is scalar type that is not included in python?
Char or characters
what python uses instead of Char or characters?
Strings or Str