Answer:
In Python, you can reverse the items of lists (list) with using reverse(), reversed(), and slicing. If you want to reverse strings (str) and tuples (tuple), use reversed() or slice.
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
Answer:
In Python, you can reverse the items of lists (list) with using reverse(), reversed(), and slicing. If you want to reverse strings (str) and tuples (tuple), use reversed() or slice.