Shortcut Navigation:

Code XA0 Quiz

How to assign a tuple of length 1 to a?

What is the result of this code? 
a = {'a':1,'b':2,'c':3}
a['a','b']

What is the result of this code? 
a = {(1,2):1,(2,3):2}
a[1,2]

What will be placed in a?a = {'a': 1,'b':2, 'a':3}

What will be placed in a?

What is the result of this code?a=[1,2,3,4,5,6,7,8,9]a[::2]

What is the result of this code?a=[1,2,3,4,5,6,7,8,9]a[::2]=10,20,30,40,50,60

What is the result of this code?a=[1,2,3,4,5]a[3:1:-1] 

What is the type of b?a = "bay"b = a[0]

What is the type of b?a = -1b = a ** 0.5

Tagged as: code xa0, code xa0, code