Is the following Python code valid? >>> a=(1,2,3) >>> b=('A','B','C') >>> c=tuple(zip(a,b)) a) Yes, c will ...
View Question
What will be the output of the following Python code?
>>> a=(0,1,2,3,4)
>>> b=slice(0,2)
>>> a[b]
What will be the output of the following Python code? >>> a=(0,1,2,3,4) >>> b=slice(0,2) >>> a[b] a) ...
View QuestionWhat type of data is: a=[(1,1),(2,4),(3,9)]?
What type of data is: a=[(1,1),(2,4),(3,9)]? a) Array of tuples b) List ...
View Question
Is the following Python code valid?
>>> a=(1,2,3,4)
>>> del a
Is the following Python code valid? >>> a=(1,2,3,4) >>> del a a) No because tuple ...
View Question
What will be the output of the following Python code?
>>> a=(2,3,4)
>>> sum(a,3)
What will be the output of the following Python code? >>> a=(2,3,4) >>> sum(a,3) a) ...
View Question
What will be the output of the following Python code?
>>> a=(1,2,3,4)
>>> del(a[2])
What will be the output of the following Python code? >>> a=(1,2,3,4) >>> del(a[2]) a) ...
View Question
What will be the output of the following Python code?
>>> a=(“Check”)*3
>>> a
What will be the output of the following Python code? >>> a=("Check")*3 >>> a a) ...
View Question
What will be the output of the following Python code?
>>> a=(1,2,(4,5))
>>> b=(1,2,(3,4))
>>> a< b
What will be the output of the following Python code? >>> a=(1,2,(4,5)) >>> b=(1,2,(3,4)) >>> a< b a) ...
View QuestionIf a=(1,2,3,4), a[1:-1] is _________
If a=(1,2,3,4), a[1:-1] is _________ a) Error, tuple slicing doesn’t exist b) ...
View Question