!conda info --envs !conda list -n test !conda install -n test git if 1 == 1: print('hello') for i in range(5): print(i) a = 4 while a > 2: print(a) a -= 1 a = [1, 2, 'hello', 3.2] print(a) a[2] = 'world' print(a) (1, 2, 'hello') a = {1, 2, 3, 3, 4} print(a) print(a.intersection({2, 4, 6})) a = {'one': 1, 'two': 2, 'three': 3} a['two'] def add(a, b): return a + b add(1, 4) class A: d = 10 def add(self, c): return self.d + c a = A() a.add(20) class B(A): def sub(self, c): return self.d - c b = B() print(b.add(20)) print(b.sub(20)) x = 1 x = 'abc' x add('hel', 'lo') add([1, 2], [3, 4, 5]) print(int('120') + 10) print(str(120) + ' items') 20 / 100 * 30 %matplotlib inline import numpy as np import matplotlib.pyplot as plt y = np.random.uniform(size=100) plt.plot(y);