/
stoledcat
/
python-project-49
Обзор
Документация
Войти
/
stoledcat
/
python-project-49
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
brain_games/games/gcd.py
12 строк
288 B
stoledcat
refactoring
30 сен 2023, 19:27
30 сен 2023, 19:27
782c058
Код
Авторство
О чём код?
import math import random DESCRIPTION = 'Find the greatest common divisor of given numbers.' def start_function(): a, b = random.randint(40, 100), random.randint(40, 100) question = f'Question: {a} {b}' right_answer = str(math.gcd(a, b)) return question, right_answer