function return None
by default, so you should return backwards
explicitly
also, you can use a pythonic way to solve the problem:
letters[::-1]
More Related Contents:
- How to leave/exit/deactivate a Python virtualenv
- Should import statements always be at the top of a module?
- How to solve “error: Microsoft Visual C++ 14.0 or greater is required” when installing Python packages?
- Correct way to try/except using Python requests module?
- Why do we use __init__ in Python classes?
- Pairs from single list
- Using an HTTP PROXY – Python [duplicate]
- Get all the diagonals in a matrix/list of lists in Python
- Splitting a list based on a delimiter word
- Python 3: EOF when reading a line (Sublime Text 2 is angry)
- Count consecutive occurences of values varying in length in a numpy array
- Intersecting two dictionaries
- Python convert tuple to string
- Is the shortcircuit behaviour of Python’s any/all explicit?
- How to ssh connect through Python Paramiko with ppk public key
- Iterating through two lists in Django templates
- How to exit from Python without traceback?
- Get column index from column name in python pandas
- Parallelizing a Numpy vector operation
- Splitting large text file into smaller text files by line numbers using Python
- Flask and uWSGI – unable to load app 0 (mountpoint=”) (callable not found or import error)
- What do underscores in a number mean? [duplicate]
- Python: False vs 0
- Selecting pandas column by location
- Python: Remove Duplicate Items from Nested list
- Python library to split and join mp3 files
- Sort strings by the first N characters
- Pandas combining rows based on dates
- What does the slice() function do in Python?
- Can’t use chrome driver for Selenium