Unit 2:L3 - Python Flashcards
(11 cards)
1
Q
What are the data types?
A
Numeric
String
Boolean
Floats
2
Q
What are strings?
A
Anything between “ “ becomes string
3
Q
What is numeric?
A
A whole no.
4
Q
What is boolean?
A
Truth values represent Yes/No
5
Q
What are floats?
A
A decimal no.
6
Q
Give an example of strings
A
“Hello”, “23.4”
7
Q
Give an example of numeric
A
3452, 500
8
Q
What is an example of Boolean
A
True, false
9
Q
Give an example of floats
A
3.12466
10
Q
what is the input of a python
A
name = (str(input(“Enter name”))
11
Q
What is the output of a python
A
print((“The name is”)),Name)