Python 2 Flashcards

1
Q

print

A

prints anything after this command to the screen

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

input

A

something the user types in

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

double equals

A

checks two things are the same

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

if

A

makes the program choose what happens next

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

variable

A

allows you to store data in the program

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

indent

A

makes a line of code start further right than the one before

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

sleep

A

a pause in seconds

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

speech marks

A

are used to go round a string

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

colon

A

double dot at the end of a choice

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

user

A

person running the program

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

elif

A

gives the user more than two options when using an if/else statement

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

while True

A

this command will loop a part of a program forever (infinite loop)

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