Unit 2:L3 - Python Flashcards

(11 cards)

1
Q

What are the data types?

A

Numeric
String
Boolean
Floats

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

What are strings?

A

Anything between “ “ becomes string

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

What is numeric?

A

A whole no.

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

What is boolean?

A

Truth values represent Yes/No

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

What are floats?

A

A decimal no.

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

Give an example of strings

A

“Hello”, “23.4”

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

Give an example of numeric

A

3452, 500

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

What is an example of Boolean

A

True, false

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

Give an example of floats

A

3.12466

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

what is the input of a python

A

name = (str(input(“Enter name”))

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

What is the output of a python

A

print((“The name is”)),Name)

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