Python sample question with answer 11
Question:
In the following code, what is the data type of login_success?
login_success = ["success", "success", "fail", "success"]
- Integer
- String
- Boolean
- List
Answer:
D - is the correct answer. List is the data type of login_success. List data is a data structure that consists of a collection of data in sequential form. Lists are placed in brackets