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:
raise KeyboardInterrupt
except Exception:
x = 1
finally:
x = 2
print(x)
x = 1
y = 2
if x > y:
res = x
elif x == y:
res = x + y
else:
res = y - x
print(res)
try:
print("A")
raise Exception("B")
except Exception as e:
print(e)
finally:
print("C")
x = 0
for i in range(5):
if i == 3:
break
x += i
print(x)
x = -1
if x:
x += 10
else:
x = 0
print(x)
def f(a, b=[]):
b.append(a)
return b
f(1)
print(f(2))
x = 0
for i in range(1, 4):
for j in range(1, 4):
if i == j:
continue
x += 1
print(x)