Now you know what sets and lists are, you can learn more about them! Try the following tasks and if you get stuck, feel free to check out more about sets and lists to find the tools you need to solve problems.
B. Try these problems and see how many you can solve.
Given two lists of numbers, count how many numbers of the first one occur in the second one.
Given two lists of numbers, find all the numbers that occur in both the first and the second list. Print them in ascending order.
Given a list of numbers, find and print all its elements that are greater than their left neighbor.
Given a list of non-zero integers, find and print the first adjacent pair of elements that have the same sign. If there is no such pair, print 0.