Skip to content

Instantly share code, notes, and snippets.

View marky1991's full-sized avatar

Mark Young marky1991

View GitHub Profile
@marky1991
marky1991 / gist:bd97ca8e386afa80f0ef
Last active December 31, 2015 06:54 — forked from anonymous/gist:951e4a9ba6c6c73ede5f
Getting Filename already in process
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')
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)'''