This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> a = ["a","b","c"] | |
>>> b = a | |
>>> b.append("d") | |
>>> print a, b | |
['a', 'b', 'c', 'd'] ['a', 'b', 'c', 'd'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Easiest way: | |
# But it is without support for complex number. | |
from math import factorial | |
factorial(6) |