This repository has been archived on 2025-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
python_it_top/th3rd_sergeevich.py
2025-09-19 00:04:48 +05:00

9 lines
732 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.

# Принцип
# Чтобы создать список циклом нужно обьявить i как интегер.
# дальше выполняется цикл для i в радиусе(от 1 до 3*25+1(1 добавляется так как 25 целая и не указывается при выводе))
# насколько понимаю при создании списка не нужно указывать двоеточия.
# так что выполняю условие если, если i делится с остатком на 3 и остаток равен 0 то вывести список.
# дальше просто принт(n)
n = [ int(i) for i in range(1,3*25+1) if i % 3 == 0 ]
print(n)