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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
You know the right answer?
Lists You can also make lists that are filled with lists! List-ception.
First, create three d...
Questions
question
History, 13.03.2021 01:00
question
Mathematics, 13.03.2021 01:00
question
Mathematics, 13.03.2021 01:00
Questions on the website: 13722359