This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Enter the code for the functions rabbitGrowth, foxGrowth, and runSimulation | |
| # in this box. | |
| def rabbitGrowth(): | |
| """ | |
| rabbitGrowth is called once at the beginning of each time step. | |
| It makes use of the global variables: CURRENTRABBITPOP and MAXRABBITPOP. | |
| The global variable CURRENTRABBITPOP is modified by this procedure. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nodeNameList = [] | |
| for i in nodes: | |
| nodeName = Node.getName(i) | |
| nodeNameList.append(nodeName) | |
| print nodeNameList | |
| for n in nodeNameList[0]: | |
| if nodeNameList[0].index(n) == nodeNameList[1].index(n): | |
| connectionLetter = n | |
| print connectionLetter |
OlderNewer