What will be the output of the given code? list(“hi”) a. [‘hi’] b. [“hi” ] c. [‘h’, ‘i’] d. hi Which of the following functions will be used to shuffle a list? a. random.shufle(list) b. list.shuffle()...


What will be the output of the given code?


list(“hi”)


a. [‘hi’] b. [“hi” ]


c. [‘h’, ‘i’] d. hi


Which of the following functions will be used to shuffle a list?


a. random.shufle(list) b. list.shuffle()


c. shuffle(list) d. shuffle.list()


What will be the output of the given code?


list=[1, 2, 3, 4, 10]


>>>print (list[-1])


a. 1 b. 10


c. 4 d. Error


Which of the following functions will be used to add a new element to a list?


a. list.append(obj) b. list.add(obj)


c. list.append() d. list.add()





May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here