This tutorial will show on how to give a Python list an initial value.
To initialize a ten items list with values set to 0:
A division of 7/3 in Python will gives a result of 2. However, this is not correct. Since Python always assume that the numbers are whole numbers, the result will be truncated from 2.5 to 2.
A work around is to write one or both of the numbers as a decimal:
This script will put commas between each group of three digits number. For example, 1234567 will become 1,234,567.
This Python script will generate a list of prime number.
This LaTeX example will create an automatic exercises numbering as well as the problems in each exercise. It is useful for creating lecture notes.