2 Simple Data Flashcards

1
Q

Assignment Token

A

=

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

Reference Diagram

A

State Snapshot

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

State Snapshot

A

Reference Diagram

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

Variable naming rules

A

Technically can be LC letter or underscore, NO #s

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

Keywords

A

and, as, not, etc.

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

Statement

A

An instruction that an interpreter can execute

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

An instruction that an interpreter can execute

A

Statement

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

Expression

A

Combo of vals, vars, ops, and funct calls that must be evaluated; produces a value.

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

Combo of vals, vars, ops, and funct calls that must be evaluated; produces a value.

A

Expression

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

Statement vs. Expression–which one returns?

A

Expression

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

% Name

A

Modulo

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

Return rightmost digit trick

A

x % 10

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

x divisible by y trick

A

if x % y = 0, x is divisible by y

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

Input code

A

input(“prompt “)

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

Which bastard evaluates R-L?

A

**

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

Incrementing by 1

A

Bumping

17
Q

Bumping

A

Incrementing by 1

18
Q

Comment in/out trick in PyCharm

A

Ctrl-/

19
Q

Swapping values between vars trick

A

a, b = b, a

20
Q

2.0 + 1 = ?

A

3.0

21
Q

How to span multiple lines?

A

Triple quotes

22
Q

New line character

A

\n