project_python/2.3_lesson.7.20.py

20 lines
845 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

****Задание 7 Параграф 2.3***
**** На велогонках важно всё автоматизировать: особенно старт.
По правилам квалификации каждый гонщик стартует с задержкой на секунду больше, чем предыдущий.
Первый гонщик стартует после отсчёта: 3, 2, 1... старт!
Второй — 4, 3, 2, 1... старт!
И так далее.
Пора подключать вложенные циклы!****
if name == "main":
count = int(input())
base_delay = 3
for number in range(1, count + 1):
for delay in range(base_delay):
print('До старта', base_delay - delay, 'секунд(ы)')
print(f'Старт {number}!!!')
base_delay += 1