Answer:
# cecha function is defined
# with 3 parameter x, y, z
# the function increase the
# value of licznik whenever
# the sum of two parameters is
# greater than the third parameter
# the function return True if
# licznik equals 3
def cecha (x, y, z):
licznik= 0
if x + y > z:
licznik+= 1
if x + z > y:
licznik += 1
if z + y > x:
licznik += 1
if licznik == 3:
return True
# user is prompt to enter x
x = int(input("Podaj 1 bok trojkata: "))
# user is prompt to enter y
y = int(input("Podaj 2 bok trojkata: "))
# user is prompt to enter z
z = int(input("Podaj 3 bok trojkata: "))
# the if block execute if
# the function return True
if cecha(x, y, z):
print("Z tych bokow da sie zbudowac trojkat")
# the else block execute if
# the function return False
else:
print("Z tych bokow nie da sie zbudowac trojkata")
Step-by-step explanation:
The program is in Python and it is well commented.
A screenshot of the program output when executed is attached