В
Все
М
Математика
А
Английский язык
Х
Химия
Э
Экономика
П
Право
И
Информатика
У
Українська мова
Қ
Қазақ тiлi
О
ОБЖ
Н
Немецкий язык
Б
Беларуская мова
У
Українська література
М
Музыка
П
Психология
А
Алгебра
Л
Литература
Б
Биология
М
МХК
О
Окружающий мир
О
Обществознание
И
История
Г
Геометрия
Ф
Французский язык
Ф
Физика
Д
Другие предметы
Р
Русский язык
Г
География
ladiaginairina
ladiaginairina
05.09.2022 19:23 •  Информатика

На языке С++ и на язике Паскале


На языке С++ и на язике Паскале

Показать ответ
Ответ:
Татьяна1301
Татьяна1301
22.03.2022 14:55

import statistics  

import typing  

from typing import Callable

def Transform(predicate: Callable[[int], bool], Array:list, NewValue: int):

   for index, item in enumerate(Array):

       if predicate(item):

           Array[index] = NewValue  

   return Array

           

def ReadSeq(Len):

   for _ in range(Len):

       yield int(input())

       

def main():

   seq = list(ReadSeq(10))

   average = statistics.mean(seq)

   TSeq = Transform(lambda p: p > average, seq, 1)

   print(*TSeq)

   

if __name__ == '__main__':

   main()

Объяснение:

0,0(0 оценок)
Ответ:
chief5
chief5
17.01.2021 04:44

с окно

Объяснение:

The 25th of May

Classwork

Проверочная работа.

Выполни задания проверочной работы письменно в тетради.

Прочитай рассказ и выполни упражнение после него:

The man and the monkeys.

    One day a man who made caps went to the market to sell them. It was a long way to go. The man passed  by a long river. When he was in the forest, he decided to rest a little, as the day was very hot and he was very tired.

  The man saw a large tree. He decided to rest under it.

  As the sun was very hot, the man put on one of the caps on his head and put all the other caps on the ground under the tree. The man had lunch, then lay down and soon was asleep. When he woke up, he could not find the caps.

“Where are my caps?” he cried. He could not find them anywhere.  

    Suddenly he looked up. And what did he see? He saw many monkeys in the tree, and each monkey had the man’s cap on its head!

“Give me back my caps!” cried the man. But the monkeys could not understand the man. They laughed, jumped and played with the caps.

The man asked and asked the monkeys to give him back his caps, but the monkeys didn’t understand him. They only laughed.

The man got very much angry with the monkeys. He took off his cap, threw it on the ground and cried: “If you want my caps, you may take this one, too!”

And do you know what the monkeys did? They took off the caps and threw them on the ground!

That’s how the man got back all his caps.

Certainly, he was very glad. He quickly took all his caps and went away.

Определи, предложения True – соответствуют тексту или False –не соответствуют тексту. (Первое предложение сделано как образец).

One day a man went to the baker`s to sell caps.- False

The man passed by a lake.

The day was very hot and the man was tired.

The man saw a large mountain.

When the man woke up he didn`t find the caps.

Each monkey had the cap on its head.

The monkeys understood him well.

The man went away without his caps.

0,0(0 оценок)
Популярные вопросы: Информатика
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота