Created
August 25, 2020 21:30
-
-
Save tamert/6728bfda5a1a95cbc39ce8dd4dd1128c to your computer and use it in GitHub Desktop.
python katılım
This file contains hidden or 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 Content: | |
def __init__(self, title, body): | |
self.title = title | |
self.body = body | |
def show(self): | |
return "baslik: %s icerik: %s" % (self.title, self.body) | |
news = Content("datca", "gercekten guzel bir sehir") | |
print(news.show()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment