QUESTIONS AND ANSWERS WITH
ACCURATE SOLUTIONS
●● How many built-in functions does python have?
Answer: 68
●● Integer (int)
Answer: Whole number (without a decimal point)
●● Float (float)
Answer: Numbers with a decimal point
●● String (str)
Answer: An ordered sequence of characters (anything in quotes)
●● Boolean (bool)
Answer: Logical value (True or False)
●● Variable
Answer: - a named piece of memory that can store a value
, - use a single equal sign
course_title = "intro to business anaytics"
- variable names are never in quotation marks
- cannot start with a number or contain spaces
●● how to check the data type of a variable
Answer: type( )function
●● what does the symbol # indicate?
Answer: - a comment
- anything to the right is ignored in execution
- help humans understand code
●● list
Answer: - an ordered collection data
- list elements DO NOT have to be the same type
- ex: star = ['R2D2', 'Luke', 66]
●● lists in python
Answer: - can contain duplicate elements
- list object type is a list
type (star) returns list