Kernel: Python 3 (Anaconda)
In [4]:
s 5.0
In [5]:
a 2.0
In [6]:
In [7]:
[[-2. 1. 0.]
[ 1. -2. 1.]
[ 0. 1. -2.]]
In [8]:
[1, 4, 9, 16, 25]
In [0]:
In [0]:
In [9]:
4
In [10]:
a d
d c
['b', 'c']
In [11]:
100
In [12]:
100 20 30
In [13]:
10 100 1000
In [14]:
{'a': 100, 'n': 1000}
In [15]:
('a', 'b')
In [20]:
In [19]:
<class '__main__.Point'>
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-19-5d36f4df8c5c> in <module>()
1 print(Point)
----> 2 pt = Point(1., 2.)
3 print(pt.x, pt.y)
4 print(pt)
TypeError: object() takes no parameters
In [21]:
File "<ipython-input-21-da5ee71ec13f>", line 7
def_str_(self):
^
SyntaxError: invalid syntax
In [22]:
15
In [1]:
5
In [2]:
-0.3934693402873664
In [0]: