예제 #1
0
def runner():
	'''Запускает выполнение всех задач'''
	print(INPUT_1, '>>\n', web2_dz1.value_square(INPUT_1))
	print(INPUT_2, '>>\n', web2_dz2.symmetry(INPUT_2))
	print(INPUT_3, '>>\n', web2_dz3.tridelta(INPUT_3))
	print(INPUT_4, '>>\n', web2_dz4.even_odd(INPUT_4))
	print(INPUT_5, '>>\n', web2_dz5.separator(INPUT_5))
	print(INPUT_6, '>>\n', web2_dz6.classifier(INPUT_6))
	print(INPUT_7, '>>\n', web2_dz7.separator_advanced(INPUT_7))
	print(INPUT_8, '>>\n', web2_dz8.duplex(INPUT_8))
	print(INPUT_9, '>>\n', web2_dz9.shrew(INPUT_9))
예제 #2
0
def tests_for_web2_dz5():
	'''Тесты задачи 5'''
	assert web2_dz5.separator([1,4,8,6,3,7,1]) == [1,1,3,7,8,6,4]