Practice Python
gyrhgyrh100 at gmail.com
gyrhgyrh100 at gmail.com
Mon May 8 02:52:21 EDT 2017
Python - Exercise 5
1. Write a function that gets a list (list) of numbers. The function returns a new list of ordered square numbers from the smallest to grow.
For example, for the list [2, 4, 5, 3, 1] the function returns
[25, 16, 9, 4, 1].
2. Write a function that receives a list (list) and a number. The function returns the number of times the number appears in the list.
For example, for list [2, 4, 2, 3, 2] and number 2 will return 3 because number 2 is listed 3 times.
The answers here:
https://www.youtube.com/watch?v=nwHPM9WNyw8&t=36s
More information about the Python-list
mailing list