Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Practice Python
#4
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:
Reply


Messages In This Thread
Practice Python - by gygy8 - Mar-27-2017, 08:42 AM
RE: Practice Python - by metulburr - Mar-27-2017, 08:55 AM
RE: Practice Python - by nilamo - Mar-27-2017, 04:44 PM
RE: Practice Python - by sparkz_alot - May-07-2017, 09:05 PM
RE: Practice Python - by Larz60+ - May-08-2017, 01:56 AM
RE: Practice Python - by metulburr - May-08-2017, 02:54 AM
RE: Practice Python - by Larz60+ - May-08-2017, 05:19 AM
RE: Practice Python - by nilamo - May-08-2017, 01:41 PM
RE: Practice Python - by Larz60+ - May-08-2017, 05:59 PM
Practice Python with translate :) - by gygy8 - May-07-2017, 03:31 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020