How to use 'python reversed' in Python

Every line of 'python reversed' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
102def reversed(seq):
103 return list(map(seq.__getitem__, range(len(seq) - 1, -1, -1)))

Related snippets