With a list comprehension:
a = [x - 13 for x in a]
More Related Contents:
- Python random.choice same output
- Python: read object from file in python
- How to use a variable inside a regular expression?
- Python Variable Declaration
- Local (?) variable referenced before assignment [duplicate]
- Purpose of calling function without brackets python
- How to deal with certificates using Selenium?
- Python sockets error TypeError: a bytes-like object is required, not ‘str’ with send function
- Play an Animated GIF in python with tkinter
- PyQt4 Wait in thread for user input from GUI
- Upload Image using POST form data in Python-requests
- importing izip from itertools module gives NameError in Python 3.x
- Python 3.4.0 with MySQL database
- rounding errors in Python floor division
- Python file.tell() giving strange numbers?
- Regular expression parsing a binary file?
- problems with pygame controller support
- Python 3 – Can pickle handle byte objects larger than 4GB?
- Why is a class __dict__ a mappingproxy?
- error installing nltk supporting packages : nltk.download()
- python pandas read_csv delimiter in column data
- python 3 open() default encoding
- How can I simulate 2.x’s tuple unpacking for lambda parameters, using 3.x?
- Pygame make sprite walk in given rotation
- Travel directory tree with limited recursion depth
- Python 3 sqlite parameterized SQL-query
- What is the difference between super() with arguments and without arguments?
- Issue with regex backreference in Python
- How do I change the volume of the sound or music in PyGame?
- What difference between pickle and _pickle in python 3?