logo

Crowdly

Browser

Add to Chrome

Questions Bank (1368991 total)



Перехідний процес

увімкнення реактивної котушки з постійними параметрами на синусоїдну напругу

відповідає перехідному процесу


0%
0%
0%
View this question

Систематизований перелік назв справ, до яких входять документи,подібні за змістом і належністю із зазначенням терміну їх зберігання

0%
0%
0%
0%
View this question
Сьома гармоніка поля обертається відносно основного поля
View this question

Якщо працівник правоохоронного органу вчиняє  порушення права на захист, то такі дії кваліфікуються як (виберіть найбільш повну правильну відповідь):

0%
100%
0%
0%
View this question

Яка з видів номенклатури справ

відображає документи конкретного підприємства?

0%
0%
100%
0%
View this question

Номенклатури справ установи складають у

0%
0%
0%
100%
View this question

Сукупність документів, які стосуються одного питання чи ділянки діяльності й уміщені в окрему обкладинку називаються

0%
0%
0%
0%
View this question

Номенклатура справи забезпечує

0%
100%
0%
0%
View this question

Write a function named generate_magic_sequence that has two parameters, start, max.

The function should:

  1. Validate the provided parameter values as instructed below

  2. Generate the sequence using the algorithm below

  3. “Return” the generated sequence (do not just “print” it!)

You will need to do some validation on the parameter values provided:

  • A valid start value must be a int.

  • A valid max value must be an float.

  • A valid max value must be greater than or equal to the start value.

If any of the parameters are invalid, the function should return an empty list (i.e. []). You should not assume that the datatype provided is correct (i.e. a float value provided as a string should be accepted).

Your program should not crash or emit unhandled errors.

Algorithm

  1. Generate a sequence of numbers following the rules below:

    1. The first value in the sequence is the value in start.

    2. Each subsequent value is calculated by incrementing the last value added to the sequence by 2 (this is called ), then applying the formula sqrt() and rounding the value to two decimal places.

    3. Continue step ii while the value is less than or equal to the max value.

    4. The last value added to the sequence must be less than or equal to the max value.

  2. Return the sequence as a list.

View this question

Чи входять до номенклатури справ

друковані видання?

0%
100%
0%
0%
View this question