1#radek kodu, ktery se nikdy nevykona
2def calculate_sum(x, y):
3 return x + y
4 print("Diky za vypocet") 5
6print(calculate_sum(10,2))
7
This statement is unreachable, as the control flow will never reach upto this point. Consider removing this part of code or re-evaluating the control flow.
def count_pairs(users):
pairs = 0
for user in users:
if user.type == "student":
pairs += 1
return pairs
pairs /= 2 # <-- Unreachable
def count_pairs(users):
pairs = 0
for user in users:
if user.type == "student":
pairs += 1
pairs /= 2
return pairs