Last active
September 14, 2021 18:51
-
-
Save chr0nu5/ab8b1e9b9120d203f52c8d532770d190 to your computer and use it in GitHub Desktop.
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
class Person: | |
def __init__(self): | |
self.name = None | |
def set_name(self, name): | |
self.name = name | |
def ask_out(self, person): | |
return "{} + {}".format(person1.name, person2.name) | |
class Date: | |
def __init__(self): | |
self.date = None | |
self.time = None | |
self.location = None | |
def set_date(self, date): | |
self.date = date | |
def set_time(self, time): | |
self.time = time | |
def set_location(self, location): | |
self.location = location | |
def make_date(self, person1, person2): | |
print("{} e {}, dia {} as {} em um {}, topa?".format( | |
person1.name, | |
person2.name, | |
self.date, | |
self.time, | |
self.location | |
)) | |
me = Person() | |
me.set_name("Pamela") | |
you = Person() | |
you.set_name("Laís") | |
date = Date() | |
date.set_date("19/09/21") | |
date.set_time("16:45") | |
date.set_location("jantar surpresa") | |
date.make_date(me, you) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment