Report Bug

Qus

What is the output of the following code?

list1=[2, 33, 222, 14, 25]
print(list1[ : -1 ])
Qus

मान लीजिए कि लिस्ट 1 है [2, 33, 222, 14, 25], लिस्ट 1 [ : - 1 ] क्या है?

list1=[2, 33, 222, 14, 25]
print(list1[ : -1 ])


A. [2, 33, 222, 14]
B. Error
C. 25
D. [25, 14, 222, 33, 2]


Solution
A. [2, 33, 222, 14]



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad