Looking for Алгоритмізація та програмування ННІ 4-25-101-102 Кб (2 сем) test answers and solutions? Browse our comprehensive collection of verified answers for Алгоритмізація та програмування ННІ 4-25-101-102 Кб (2 сем) at kursant.khnuvs.org.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
try:
x = [1, 2, 3][5]
except IndexError:
x = 10
else:
x = 5
finally:
x *= 2
print(x)
x = 5
y = 2
if x % y:
z = x // y
else:
z = x * y
def f(*args):
return len(args)
print(f(1, 2, 3))
i = 0
while i < 5:
if i == 2:
i += 1
continue
i += 1
print(i)
x = 0
for i in range(5):
if i % 2 == 0:
continue
x += i
print(x)
try:
raise ValueError
except:
x = 3
finally:
del x
print(x)
x = 10
def f():
x = 5
f()
print(x)