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/Practica3/task4_rpo254.py
2025-09-22 13:46:31 +05:00

16 lines
363 B
Python

from random import randint as r
import sys as os
value = r(1,500)
d = -50
while d != 0:
print("Загадано число от 1 до 500")
d = int(input("введи число: "))
if d < value:
print("Меньше!")
elif d > value:
print("Больше!")
elif d == value:
print("Победа!")
os.exit(1)