tasks for beginners on the topic of lists

Revision en1, by Ivan_Tatarchuk, 2024-01-28 13:32:27

There is a list a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89].

Print all the elements that are less than 5. _________________________________________________________________________________________________________________________________

Lists are given:

a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89];

b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13].

You need to return a list that consists of elements that are common to these two lists.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ivan_Tatarchuk 2024-01-28 13:32:27 489 Initial revision (published)