Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
def f(n):
if n <= 2: return 1 return 3 * f(n - 1) - f(n - 2)
print(f(8)) J: 233
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
s = 0
for i in range(4, 257, 9): s += i print(s) J:3770
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
s = 0
for i inrange(11): for j inrange(11): s += (i & j) print(s) J:211
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
s = 0
for i in range(1, 11): for j in range(1, 11): s += (i // j) print(s) J: 100
Python dasturlash tilida berilgan quyidagi dastur natijasini aniqlang.
print([1, 2] * 3)
J: [1, 2, 1, 2, 1, 2]
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
J
T.J
Test bali___________________
Bog’ot tumanidagi 21-son maktabning 9-sinf o’quvchisi ________________________________________________________ning maktab ichki olimpiadasi uchun testi