computing : data types Flashcards
What data type holds whole numbers in Python?
Integer
What data type holds numbers with decimal points?
Float
What data type holds alphanumeric data as text?
String
What data type holds only one character (like a letter or symbol)?
Character
What data type holds either True or False?
Boolean
What operator is used for addition in Python?
+
What operator is used for multiplication in Python?
*
What operator is used for division in Python?
/
What operator is used for subtraction in Python?
-
What is it called when you manually change a variable’s data type in Python?
Casting
What function do you use to convert something into a string in Python?
str()
What function do you use to convert something into an integer in Python?
int()
What function do you use to convert something into a float in Python?
float()