The + operator concatenates lists:
>>> a = [1, 2, 3] >>> b = [4, 5, 6] >>> c = a + b >>> print c [1, 2, 3, 4, 5, 6]
Similarly, the * operator repeats a list a given
number of times:
>>> [1, 2, 3] * 3 [1, 2, 3, 1, 2, 3, 1, 2, 3]
This web page contains solved examples from statics, dynamics, linear and nonlinear vibrations, and acoustics. All examples are solved using the Python programming language.
Nema komentara:
Objavi komentar