import randomnumbers = [random.randint(0, 10) for _ in range(10)]
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers:
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value:
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value:
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = number
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_value
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)print("Наименьшее число:", min_value)
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)print("Наименьшее число:", min_value)print("Наибольшее число:", max_value)
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)print("Наименьшее число:", min_value)print("Наибольшее число:", max_value)print("Разница между ними:", difference)
Answers & Comments
Ответ:
import random
import randomnumbers = [random.randint(0, 10) for _ in range(10)]
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers:
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value:
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value:
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = number
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_value
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)print("Наименьшее число:", min_value)
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)print("Наименьшее число:", min_value)print("Наибольшее число:", max_value)
import randomnumbers = [random.randint(0, 10) for _ in range(10)]min_value = 10 max_value = 0for number in numbers: if number < min_value: min_value = number if number > max_value: max_value = numberdifference = max_value - min_valueprint("Список случайных чисел:", numbers)print("Наименьшее число:", min_value)print("Наибольшее число:", max_value)print("Разница между ними:", difference)