Untitled
import random start = int(input("Enter starting value: ")) end = int(input("Enter ending value: ")) numbers = [] while len(numbers) < 100: num = random.randint(start, end) if num % 2 == 0 and num % 5 != 0: numbers.append(num) with open("random_numbers.txt", "w") as f: for num in numbers: f.write(str(num) + "\n") f.write("Ortalama: " + str(sum(numbers) / len(numbers)) + "\n") f.write("Maksimum: " + str(max(numbers)) + "\n") f.write("Minimum: " + str(min(numbers)))