examResults = (50, 70, 30, 30, 80, 58, 64, 53)
applicantsCount = len(examResults)
average = sum(examResults) / applicantsCount
for i in examResults:
print("%d — %s поступил" % (i, "не" if i > average else ""))
Объяснение:
Привет, вот
examResults = (50, 70, 30, 30, 80, 58, 64, 53)
applicantsCount = len(examResults)
average = sum(examResults) / applicantsCount
for i in examResults:
print("%d — %s поступил" % (i, "не" if i > average else ""))
Объяснение:
Привет, вот