how can we print an order list in reserved order ?
Answers
Answered by
0
Answer:
Reversing a list in-place with the list. reverse() method. Using the “ [::-1] ” list slicing trick to create a reversed copy. Creating a reverse iterator with the reversed() built-in function.
Answered by
1
the reversed attribute is a boolean attribute and does not any vаluе but help accept any value but helps is in printing the list in a reserved order
For example- <ol start = "5 "reversed'>
using the above syntax the first ordered list will be be numbered as S and the numbering will be done un descending order.
hope it's helpful to you
Similar questions