Algorithms, functions, classes, regular expressions, iterators, generators, OOP, exceptions, NumPy, pandas, scikit-learn
https://telega.in/c/python_tasks
Questions — @dina_ladnyuk
Post #2180
1.79K
- 👍 3
PY @python_tasks
Showing posts older than #2181 · Back to latest
from math import log
from functools import reduce
f = lambda acc, x: x * acc
gen = (abs(log(i / 10)) for i in range(1, 1000))
print(int(reduce(f, gen, 1)))
-True % 13 + True % 13
"I have 10 cars".isalnum()
print("python".zfill(10))import numpy as np
A = np.random.randint(1, 100, size=(5, 5))
B = A.copy()
B[:, [0, -1]] = B[:, [-1, 0]]
d = lambda x: round(np.linalg.det(x))
print(d(A) + d(B))
"python" * 0 is '' * 10
True + ~False
x = False or None and True
print(x)
None or False and True