Slicing in Python
Email *
If A=[3, 9, 4, 6, 7, 5, 10, 16, 12, 2], Then A[3: : ]=
1 point
Clear selection
If A=[3, 9, 4, 6, 7, 5, 10, 16, 12, 2], Then A[ :3: ]=
1 point
Clear selection
If A=[3, 9, 4, 6, 7, 5, 10, 16, 12, 2], Then A[ : : 3]=
1 point
Clear selection
If A=[3, 9, 4, 6, 7, 5, 10, 16, 12, 2], Then A[ : : -3]=
1 point
Clear selection
If A=[3, 9, 4, 6, 7, 5, 10, 16, 12, 2], Then A[ :-3 :]=
1 point
Clear selection
If A=[3, 9, 4, 6, 7, 5, 10, 16, 12, 2], Then A[-3 :  :]=
1 point
Clear selection
If course="Python Programming", then course[:6]=?
1 point
Clear selection
If course="Python Programming", then course[::6]=?
1 point
Clear selection
If course="Python Programming", then course[-6:]=?
1 point
Clear selection
If course="Python Programming", then course[:-6]=?
1 point
Clear selection
If course="Python Programming", then course[::-6]=?
1 point
Clear selection
If course="Python Programming", then course[6::2]=?
1 point
Clear selection
If course="Python Programming", then course[6:-6]=?
1 point
Clear selection
If course="Python Programming", then course[-6:6]=?
1 point
Clear selection
If course="Python Programming", then course[6:-6:-1]=?
1 point
Clear selection
If course="Python Programming", then course[-6:6:-1]=?
1 point
Clear selection
If A, B="Hello", "World", then A[:2]+B[-2:]=?
1 point
Clear selection
If T=tuple('Learn with YK'), then len(T[2:-2:2])=
1 point
Clear selection
If T=tuple('Learn with YK'), then max(T[2:-2:2]) =
1 point
Clear selection
If T=tuple('Learn with YK'), then min(T[2:-2:-2]) =
1 point
Clear selection
If a=1,2,3,4,5,6,7, then a[1:5][2]=
1 point
Clear selection
If a=(1,2,3,4,[5,6,7,8,9],10), then which of the following expressions is invalid:
1 point
Clear selection
If a=1,2,3,4,5,6,7,8,9, then a[::2]=
1 point
Clear selection
If a=1,2,3,4,5,6,7,8,9, then a[::2][2:]=
1 point
Clear selection
If a=1,2,3,4,5,6,7,8,9, then a[::2][2:][:2]=
1 point
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy