class suspect:def __init__(self, last_name, first_name, age, adsresse, crime, prison_years, high_level):self.last_name = last_nameself.first_name = first_nameself.age = ageself.adsresse = adsresseself.crime = crimeself.prison_years = prison_yearsself.high_level = high_leveldef prison_years(self):if self.prison_years >=30:return Trueelse:return Falsedef high_level(self):if self.prison_years >=30:self.high_level = Trueprint("the suspect is high level dongerous ")else:print("the suspect is not high level dongerous " )
Saturday, June 13, 2020
Subscribe to:
Post Comments (Atom)

0 comments