This file contains 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
filename = easygui.fileopenbox() | |
failed_orders = [] | |
def CSV_editor(): | |
''' | |
This area will be designed to edit the CSV file once chosen from the File Open Box. | |
Once processed, it will allow for immediate processing of the file. There will be no more need to edit the CSV manually any longer. | |
''' | |
os.rename(filename, '{0}.csv.bak'.format(filename)) | |
csv_in = open('{0}.csv.bak'.format(filename), 'rb') |
This file contains 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
from random import randint | |
#You know you can use random.random() to get a random number between 0 and 1, right? | |
male=int(raw_input('Initial male population: ')) | |
female=int(raw_input('Initial female population: ')) | |
years=int(raw_input('How many years should elapse? ')) | |
class Males(object): | |
'''Male population settings. Defines the death rates (old age)''' | |