Arrays

Arrays 2

The following modes of transport are stored in an array, with “transport” as the identifier: transport = [“car”, “bus”, “plane”, “boat”, “bicycle”] Complete the following output statement, so that the sentence it generates makes sense. print(“A ” + ______ + “travels through the air, whereas a” + ______ + “travels on water.”)

Arrays 2 Read More »

Arrays 1

Study the following arrays. x_numbers = [2,5,3,1,3,2,4,5,2] y_numbers = [[2, 5, 3], [1, 3, 2], [4, 5, 2]] a) What type of array is x_numbers? b) How would the value of 4 be access in the array x_numbers? c) What type of array is y_numbers? d) How would the value of 4 be access in

Arrays 1 Read More »

Shopping Cart
Scroll to Top