LoginSignup
4
4

More than 5 years have passed since last update.

2016で遊ぶ - Python

Posted at

2016で遊ぶをPythonでもやってみました。

python
import numpy as np

sum(range(64))
>>>
2016

sum(2**np.arange(5, 11))
>>>
2016

sum(np.arange(3, 10)**3)
>>>
2016
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4