def read_education(): education = Education() education.name = input("Enter name of education: ") education.school = input("Enter name of school/university: ") education.level = input("Enter education level: ") return education
def __init__(self, name, age, retireAge, deadAge, incomePA, expensesPM, proportionSaved): self.name = name self.age = age self.retireAge = retireAge self.deadAge = deadAge # Education # Currently does not take user input and is hard coded in the Education Class initialisation... # Loans self.hasLoan = False self.loanDict = {} self.noLoans = 0 self.loanPaymentSum = 0 # Earnings # Income self.hasIncome = False self.incomePA = incomePA self.income = self.incomePA / 12 self.hasIncome = True # Expenses self.expenses = expensesPM # Expenses per month # Savings self.proportionSaved = proportionSaved # Inherit Loan init.. by inheriting this class, we can access it's attributes and methods... Income.__init__(self, self.income) # pass attribute to class # Init Expenses Expenses.__init__(self, self.expenses) # Init Savings Savings.__init__(self, self.proportionSaved) # Init Tax Tax.__init__(self) # Init super Superannuation.__init__(self, 0.095) # Init asset value AssetValue.__init__(self, 0.06) # Init Education Education.__init__(self) # Init Earnings Earnings.__init__(self, self.eduLevel, self.age, self.retireAge)
def generate_local(cls): mentors = Mentor.create_by_csv("data/mentors.csv") students = Student.create_by_csv("data/students.csv") events = Events.create_by_csv("data/events.csv") retrospectives = [] for student in students: retrospectives.append(student.retrospective_object) education = Education.create_by_csv("data/education.csv") local_codecool_class = cls("Budapest", 2016, mentors, students, retrospectives, events, education) return local_codecool_class
def main(): candidate_database = CandidateDatabase() candidate = Candidate() candidate.name = "Alicia Toomtest" candidate.title = "Python Developer" candidate.address = "Gothenburg, Sweden" candidate.phone = "0722879879" candidate.email = "*****@*****.**" candidate.hobbies = "Gardening" candidate.education = [ Education(name="Education", school="School", level="Level"), Education(name="Education2", school="School2", level="Level2") ] candidate.experience = [ Experience(employer="Volvo", title="Python developer", responsibilities="code", duration_years="2018-present") ] candidate.note = Note() candidate.note.summary = "Gslf9ehdlsdfnjslsleofjfms," candidate.note.comment = "dki9eufsklwodudndjskwoeifjdk" # print_candidate(candidate) candidate_database.add_candidate(candidate) find_result = candidate_database.find_candidates("toom") if len(find_result) > 0: print_candidates(find_result) else: print("No result found") print_candidate(candidate) return
def __init__(self, index, area, env): self.env = env self.index = index self.area = area self.income = Income.income_60_120 self.education = Education.get_education_level() self.destination = [0, 0] self.event = env.event() print('self.Education = %d' %(self.education))
def __init__(self, index, area, env): self.env = env self.index = index self.area = area self.income = Income.income_60_120 self.education = Education.get_education_level() self.destination = [0, 0] self.event = env.event() print('self.Education = %d' % (self.education))
def education(self): my_education = Education(self) my_education.show_universities()
dp.gender, dp.description, dp.address, dp.birthday, dp.blog, dp.status,\ dp.sexuality, dp.bloodtype, dp.fashion = reutil.detailprofile_re(body.text) print '', dp try: GetAllProfileList.dprofile_d.insertIntoDB(dp) except Exception, e: pass #education schoollist = reutil.education_re(body.text) if schoollist: sname, stime = schoollist einfolist = [] if sname.__len__() == stime.__len__(): for i in range(sname.__len__()): einfo = Education(weiboid, sname[i], stime[i]) einfo.setWmd5() print 'Why' print '', einfo try: GetAllProfileList.education_d.insertIntoDB(einfo) except Exception, e: pass time.sleep(0.3) else: print '该用户没有学校信息' # 获取未下载教育信息的微博帐号 def getWeiboIds(): weiboids = []
user_input = input("energy_level = School.check_energy()") energy_level = School.check_energy() user_input = input("School.class_do_gym(energy_level)") School.class_do_gym(energy_level) user_input = input("energy_level = School.check_energy()") energy_level = School.check_energy() user_input = input() print( "\n" + School.mentors[0].first_name + " " + School.mentors[0].last_name + ': "I think that the energy level is optimal."') user_input = input("School.do_project()") School.do_project() user_input = input() print("Continue the day with NOT EXAM.") user_input = input("Education.not_exam(School)") Education.not_exam(School) user_input = input("School.all_class_do_event(2)") School.all_class_do_event(2) # lunch user_input = input("Education.peer_mentoring(School)") Education.peer_mentoring(School) user_input = input("Education.private_mentoring(School)") Education.private_mentoring(School) user_input = input("School.mentors[0].poledance(School)") print( School.mentors[0].first_name + " " + School.mentors[0].last_name + ' "The boogie is in my legs! Lets do poledance."' + "\n") School.mentors[0].poledance(School) user_input = input() print("Energy level increased by 15") user_input = input("School.check_energy()") energy_level = School.check_energy()
dp.gender, dp.description, dp.address, dp.birthday, dp.blog, dp.status,\ dp.sexuality, dp.bloodtype, dp.fashion = reutil.detailprofile_re(body.text) print '',dp try: GetAllProfileList.dprofile_d.insertIntoDB(dp) except Exception, e: pass #education schoollist = reutil.education_re(body.text) if schoollist: sname, stime = schoollist einfolist = [] if sname.__len__() == stime.__len__(): for i in range(sname.__len__()): einfo = Education(weiboid, sname[i], stime[i]) einfo.setWmd5() print 'Why' print '',einfo try: GetAllProfileList.education_d.insertIntoDB(einfo) except Exception, e: pass time.sleep(0.3) else: print '该用户没有学校信息' # 获取未下载教育信息的微博帐号 def getWeiboIds(): weiboids = [] myconnect = GetConnect()
School.count_mentors() user_input = input("energy_level = School.check_energy()") energy_level = School.check_energy() user_input = input("School.class_do_gym(energy_level)") School.class_do_gym(energy_level) user_input = input("energy_level = School.check_energy()") energy_level = School.check_energy() user_input = input() print("\n" + School.mentors[0].first_name + " " + School.mentors[0].last_name + ': "I think that the energy level is optimal."') user_input = input("School.do_project()") School.do_project() user_input = input() print("Continue the day with NOT EXAM.") user_input = input("Education.not_exam(School)") Education.not_exam(School) user_input = input("School.all_class_do_event(2)") School.all_class_do_event(2) # lunch user_input = input("Education.peer_mentoring(School)") Education.peer_mentoring(School) user_input = input("Education.private_mentoring(School)") Education.private_mentoring(School) user_input = input("School.mentors[0].poledance(School)") print(School.mentors[0].first_name + " " + School.mentors[0].last_name + ' "The boogie is in my legs! Lets do poledance."' + "\n") School.mentors[0].poledance(School) user_input = input() print("Energy level increased by 15") user_input = input("School.check_energy()") energy_level = School.check_energy() user_input = input("School.do_retro()")
def __init__(self, gender, age): self.gender = gender self.age = age self.stage = next(stage for stage in self.LIFE_STAGES if age in stage.span) # Names self.name = None # May depend on family self.surname = None self.original_surname = self.surname # Depends on surname # Basics self.gender_identity = None # Linked to gender self.sexual_orientation = None self.target_gender = [] # Linked to sexual_orientation self.race = None self.relationship_orientation = None self.can_have_bio_children = False self.conditions = [] # Default vars self.is_alive = True self.is_adopted = False self.was_in_foster_care = False self.is_twin = False self.is_triplet = False self.relationship_status = self.SINGLE self.is_pregnant = False self.is_in_adoption_process = False self.expecting_num_of_children = -1 self.desired_children_left = 10 # Family self.parents = [] self.children = [] self.adoptive_parents = [] self.adoptive_children = [] self.partners = [] self.spouses = [] self.deceased_partners = [] self.deceased_spouses = [] self.ex_partners = [] self.ex_spouses = [] # Death (Default: Old age) self.death_date = False self.death_cause = self.OLD_AGE # Depends on death_date # Will be initialized once Teen if applicable self.come_out_date = -1 self.move_out_date = -1 self.thrown_out_date = -1 # Relationship traits -> Will be initialized once Young Adult self.is_liberal = None self.wants_domestic_partnership = False self.wants_marriage = False self.wants_children = False self.in_love_with_family = False self.in_love_with_intergenerational = False self.in_love_with_another_race = False self.in_love_as_throuple = False self.in_love_date = -1 self.single_adoption_process_date = -1 self.single_adoption_date = -1 # Degree self.education = Education() self.school_start_date = -1 self.will_do_bachelor = False self.will_do_master = False self.will_do_doctor = False # Professions -> Will be initialized once Young Adult # self.occupation = None # self.employment = None # self.current_job = None # self.job_history = [] self.job = Job() # Addiction attributes -> Will be initialized once Young Adult self.will_become_drug_addict = False self.will_become_alcohol_addict = False self.addiction_date = -1 self.is_drug_addict = False self.is_alcohol_addict = False self.was_drug_addict = False self.was_alcohol_addict = False self.rehabilitation_date = -1 self.relapse_date = -1 # Will be initialized if within Neighborhood self.apartment_id = -1 self.is_neighbor = False self.neighbor_friends = [] self.move_in_date = -1 self.house_to_move_in = -1 # Depression self.depression_date = -1 self.therapy_date = -1 self.depression_recovery_date = -1
def __init__(self, first_name, last_name, year_of_birth, gender, nickname): super().__init__(first_name, last_name, year_of_birth, gender) self.nickname = nickname self.educate = Education()