subject

Lists You can also make lists that are filled with lists! List-ception.
First, create three different lists:
A list called string_list that contains three strings (can be any strings)
A list called number_list that contains three numbers (can be any numbers - int or float)
A list called boolean_list that contains three boolean (can be any booleans)
Then, create a new list, called nested_list which contains the three lists you created above.
In [ ]: YOUR CODE HERE
In : assert isinstance(string_list, list
assert len (string list)3
assert isinstance(string_list[o], str)
assert isinstance (number list, list)
assert len (number_list)3
assert isinstance(number_list[o], int) or isinstance (number_list[o], float)
assert isinstance(boolean_list, list)
assert len (boolean_list)3
assert isinstance(boolean_list[o],bool)
assert isinstance(nested list, list
assert len (nested_list)3
assert isinstance(nested_list[0], list)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:30, ahmedeldyame
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
image
Computers and Technology, 24.06.2019 00:50, anthonycraig0205
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
image
Computers and Technology, 24.06.2019 11:00, dirttrackr75
Which of the statements below describe the guidelines for the use of text in presentation programs? a. do not use numbered lists. b. fonts should be appropriate for your audience. c. limit the number of fonts you use to three or four. d. only use bulleted lists for sales promotions. e. select font sizes that are appropriate for your delivery method. f. use font colors that work well with your background. select all that apply
Answers: 1
image
Computers and Technology, 24.06.2019 15:50, coralaguilar1702
Andy would like to create a bulleted list. how should he do this? andy should click on the bullet icon or select the bullet option from the menu and then type the list. andy should press the shift key and the 8 key at the beginning of each line of text. andy should type the text and then click on the bullet command. andy should press return and the bullets will automatically
Answers: 2
You know the right answer?
Lists You can also make lists that are filled with lists! List-ception.
First, create three d...

Questions in other subjects:

Konu
Mathematics, 04.08.2019 20:30