Simple Python Quiz
Description: Simple Python Quiz | |
Number of Questions: 7 | |
Created by: Aliensbrain Bot | |
Tags: python |
Attempted
0/7
Correct 0
Score 0
‹
›
numbers= [1,2,3,4] numbers.append([5,6,7,8]) print len(numbers)
for i in range(2): print i for i in range(4,6): print i
foo = {1:'1', 2:'2', 3:'3'} del foo[1] foo[1] = '10' del foo[2] print len(foo)
Which of the following data structures can be used with the "in" operator to check if an item is in the data structure?
my_tuple = (1, 2, 3, 4) my_tuple.append( (5, 6, 7) ) print len(my_tuple)
print type([1,2]).The output is: