Python & ML tasks
415 subscribers
2 photos
3 links
Python, functions, classes, iterators, generators, numpy, pandas, scikit-learn, TensorFlow
for advertising: @dina_ladnyuk

For advertising and donations in USD:
SWIFTBIC BUKBGB22
IBAN GB40 BUKB 2047 3453 2396 99
Mrs Dina Ladnyuk
Download Telegram
What will this code do?
print(type(type(bool(1))))
What will this code do?
x = float('inf')
s = x - x
print(s)
What will this code do?
import numpy as np
import pandas as pd
a = pd.np.array([1, 2, 3])
b = np.array([-3, 2, 1])
print(a @ b)
What will this code do?
print(list(map(lambda f: f(2), [lambda x: x**i for i in range(3)])))
What will this code do?
print(list(map(lambda f: f(2), (lambda x: x**i for i in range(3)))))
What will this code do?
x = 5
y = '5'
print(not x == y and not y)
What will this code do?
1 > 1 or {} or 'hello' or type('hello') is str and False
What will this code do?
2 > '1'
What will this code do?
x = [1, 2, 3, [4, 5], 6]
print(x[x[3][0]])
What will this code do?
(lambda x: x**2 if '' or None or 1 and [False] else lambda x: x*2)(3)
What will this code do?
x = [[0]]
x = x + x * 2
x[0].append(1)
print(x)