Lists
You can also make lists that are filled with lists! List-ception.
First, create three d...
Computers and Technology, 17.08.2021 03:50, maddy3lizabeth
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)
Answers: 2
Computers and Technology, 22.06.2019 15:30, gudon986732
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
Computers and Technology, 23.06.2019 17:30, cxttiemsp021
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
Computers and Technology, 24.06.2019 10:20, silviamgarcia
Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should not be added to the list). these values entered by the user are added to a list we call 'initial_list'. then write a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. finally, inside print out all of the values in the new list. for example: input: enter value to be added to list: a enter value to be added to list: b enter value to be added to list: c enter value to be added to list: exit output: a b c a b c a b c note how 'exit' is not added to the list. also, your program needs to be able to handle any variation of 'exit' such as 'exit', 'exit' etc. and treat them all as 'exit'.
Answers: 2
Mathematics, 14.05.2021 15:30
Mathematics, 14.05.2021 15:30
History, 14.05.2021 15:30