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/23-10/home_work.py
sophron a94433a226 add
2025-10-23 06:24:09 +00:00

35 lines
987 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.

def one_task():
print("\n\"Don\'t compare yourself with anyone in this world...if you do so, you are insulting\nyourself.\""
"\n\nBill Gates \n")
def two_task():
list_numbers=[]
one_num = int(input("1_число :: "))
two_num = int(input("2_число :: "))
for nums in range(one_num,two_num+1):
if nums%2==0:
nums.append()
print(f"Четные числа: {nums}")
def tasks(ans):
if ans == 1:
one_task()
if ans == 2:
two_task()
if ans == 3:
thr_task()
def menu():
while True:
print("Домашнее задание от 23.10.25\nВыберите номер задания:\n"
"::1 формат текст\t" "::2 четн числа\n" "::3 квадрат\t\t"
"::0 Выход\n")
answer = int(input(":: "))
if answer == 0:
print(":: exit!")
break
tasks(answer)
if __name__ == "__main__":
menu()