Robotics & Artificial Intelligence
The …………… keyword is used to print the list elements in descending order.
- Sort
- Index
- Descend
- Reverse
Python List Manipulation
3 Likes
Answer
Reverse
Reason — The keyword reverse=True is used with the sort() function to arrange and print list elements in descending order.
Answered By
2 Likes
Related Questions
The …………… function in Python is used to add elements to an empty list.
- add()
- append()
- concatenate()
- fill()
To print an individual item of the tuple, you need to specify the ……………. value of the item inside the square brackets.
- Order
- Index
- Zero
- Negative
Tuples are …………… objects.
- Mutable
- Immutable
- Non-static
- Infinite
Fill in the blanks:
- Python offers a wide range of data structures often referred to as ……………. .
- In an ……………. list, the square brackets [] do not hold any value.
- The ……………. function in Python can be used when we want to know the number of elements stored in a list.
- A tuple is an ……………. sequence of items having any number of elements of different data types.
- Sorting is the process of ……………. and displaying the elements of a list in ascending or descending order.