Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Biodiversity
#3
In CalculateDistance(), there should be no reason to convert the arguments to floats; they should be floats when passed into the function.

In LocationCount(), the FileName parameter isn't being used. No matter what file you declare, it will always pull from Mammal.txt. Plus, the function will always return 0 because animalList is instantiated but nothing is ever appended to it. You want to return LocationCount.
Reply


Messages In This Thread
Biodiversity - by annelewis - Apr-23-2020, 06:22 PM
RE: Biodiversity - by ndc85430 - Apr-23-2020, 06:29 PM
RE: Biodiversity - by stullis - Apr-23-2020, 07:20 PM
RE: Biodiversity - by Jeff900 - Apr-23-2020, 07:36 PM
RE: Biodiversity - by annelewis - Apr-24-2020, 01:09 PM
RE: Biodiversity - by Jeff900 - Apr-24-2020, 01:33 PM

Forum Jump:

User Panel Messages

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