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()
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()
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here