Computers and Technology, 04.08.2020 14:01 mutesheep
#Below is a class representing a person. You'll see the
#Person class has three instance variables: name, age,
#and GTID. The constructor currently sets these values
#via a calls to the setters.
#
#Create a new function called same_person. same_person
#should take two instances of Person as arguments, and
#returns True if they are the same Person, False otherwise.
#Two instances of Person are considered to be the same if
#and only if they have the same GTID. It does not matter
#if their names or ages differ as long as they have the
#same GTID.
#
#You should not need to modify the Person class.
class Person:
def __init__(self, name, age, GTID):
self. set_name(name)
self. set_age(age)
self. set_GTID(GTID)
def set_name(self, name):
self. name = name
def set_age(self, age):
self. age = age
def set_GTID(self, GTID):
self. GTID = GTID
def get_name(self):
return self. name
def get_age(self):
return self. age
def get_GTID(self):
return self. GTID
#Add your code below!
#Below are some lines of code that will test your function.
#You can change the value of the variable(s) to test your
#function with different inputs.
#
#If your function works correctly, this will originally
#print: True, then False.
person1 = Person("David Joyner", 30, 901234567)
person2 = Person("D. Joyner", 29, 901234567)
person3 = Person("David Joyner", 30, 903987654)
print(same_person(person1, person2))
print(same_person(person1, person3))
Answers: 3
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
#Below is a class representing a person. You'll see the
#Person class has three instance variables:...
History, 30.11.2021 05:10
SAT, 30.11.2021 05:10
English, 30.11.2021 05:10
Mathematics, 30.11.2021 05:10
Mathematics, 30.11.2021 05:10
Mathematics, 30.11.2021 05:10
English, 30.11.2021 05:10
Mathematics, 30.11.2021 05:10
Social Studies, 30.11.2021 05:10
History, 30.11.2021 05:10
Mathematics, 30.11.2021 05:10
Mathematics, 30.11.2021 05:10