#NoPayJan Offer - Access all CloudxLab Courses for free between 1st to 31st Jan
Just like strings, you can check for methods for lists as well using dir and help. Some important methods are like append, extend and sort.
dir
help
append
extend
sort
Understand the code and make use of notebook to figure out the results,
a = [23,12,32,1,2,34,56] a.append(12) print(a[len(a)-2])
Enter the number printed
a.extend(a)
Enter the sum of all elements within a
a
a.sort() print(a[2] + a[7])
Some other functions are,
sum()
max()
len()
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...