Take a list, say for example this one:
and write a program that prints out all the elements of the list that are less than 5.
athat are smaller than that number given by the user.
I will note that none of the solutions that were submitted were written in one line of Python. There will be more exercises later that show you how to do this!
Here is a sample solution that solves the exercise, including extras 1 and 3.comments powered by Disqus