QuizΒΆ
Example - sales
At the beginning of the script, the values of several sales in one store are given. Extract the sales with a value greater than 1000 and less than or equal to 4000 into a list, then print the list elements out.
The problem is solved as follows:
Example - Leap changes
A tuple of numbers is given. Extract numbers that differ from their predecessors at least by 10, then print them out.
One possible solution is:
Task - even numbers
A tuple of numbers is given. Extract the numbers that are even and then print them out.
Recall that the number x is even if x % 2 == 0
Task - every third word
A tuple of strings is given. Extract strings whose indices are divisible by 3, then print them.
Task - below zero
A tuple of numbers is given. Extract the numbers that are negative and their predecessors are positive, then print the extracted numbers.