Module 2 video notes Flashcards

1
Q

Script

A

A sequence of instructions to tell computers what to do
- Made of one or more statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Statement

A

A syntactic unit of a programming language that expresses some action to be carried out
- Think ‘sentences’ or ‘paragraphs’ of writing artifact

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are variables?

A
  • It is a reference to a place in the computer’s memory where some values are stored (temporarily)
  • Computers have extremely ‘short’ memory because memory is expensive
  • Only store limited amount of data (1’s and 0’s)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do we do with variables?

A

Calculate some arithmetic operations: addition (+), subtraction (-), multiplication (*), division (/), etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What about letters, sounds, pictures?

A

1’s and 0’s can be transformed into other symbolic expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are diff data types?

A

Numbers
- Integers (1, 2, 3,….)
- Boolean: 1(True), 0(False)
- Float: numbers with decimals

Strings
- Texts - a sequence of values that represent Unicode code points (think of alphabet)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are operators?

A

Symbols that perform the following:
- Addition
- Subtraction
- Multiplication
- Division
- And more…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to work with text in Python. What do computers only recognize?

A

Computers only recognize 1’s and 0’s
Computers use alphabet – a set of letters that come in packages, usually in order sequences
We can assign numbers to each letter. Ex: A: 65, a: 97

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the common encoding or set of codes?

A

Unicode, ASCII

These were developed originally with typewriter in mind

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Elaborate

Special characters in Python have special meaning in Python

A
  • Quotes – single, double, triple (Indicates a string)
  • Hashtags (comment)
  • Use escape character to escape its alternate use (' single quote and "” double quote)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do conditional statements - IF provide multiple pathways to decision?

A

IF – creates conditions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are conditions in IF statements?

A

Condition: compares something to be true or false
- If true, do something
- Else (if false), do something else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why descriptive statistics?

A

To Summarize Data
- Mean/Median/Mode (all of these names mean the same thing really)
- SD, Var, Range (Min, Max), (these all really mean the same thing too)
- Sum
- Count

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are Python statements and scripts?

A

They are used to instruct computers to execute mathematical operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are variables used for?

A

They store data into computer’s memory so that you can use/reuse it later

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What kind of data hels you organize information for different use cases?

A

Numbers
Strings (i.e. letters, texts)