From e5beb18ac315e951a9e40cd896cbc419d7e44366 Mon Sep 17 00:00:00 2001 From: Nisanur Bulut Date: Sun, 30 Jan 2022 19:30:02 +0300 Subject: [PATCH 1/2] updated readme and written book.py class --- README.md | 4 ++++ SayHiPython/Book.py | 14 ++++++++++++++ Trailers/sayhi.png | Bin 0 -> 11330 bytes 3 files changed, 18 insertions(+) create mode 100644 SayHiPython/Book.py create mode 100644 Trailers/sayhi.png diff --git a/README.md b/README.md index 82e943a..68b1039 100644 --- a/README.md +++ b/README.md @@ -225,6 +225,10 @@ The project topic is very simple: Users sign up for the application and see the ![SayHiVue](https://github.com/NisanurBulut/SayHiCode/blob/master/Trailers/Trailer_SayHiVue.gif) +### 14. SayHiPython +
+

With this study, an introduction to OOP with python was made. Excel file reading and data processing were done. + ## Helpfull Websites [json-to-js](https://www.convertonline.io/convert/json-to-js) [json2ts](http://json2ts.com/) [fusioncharts](https://www.fusioncharts.com/) [React-Query-Tutorial](https://www.youtube.com/watch?v=XRbnuiAbV3g&list=PLzJ4DQ1UrlRb0XiN-vecbtZ31t-Q2Z6BD&ab_channel=boraoren) [Laravel-artisan-blog](https://www.yasird.com/laravel-5-artisan-nedir/) [MailTrap](https://mailtrap.io/) [HeroIcons](https://heroicons.com/) [The Net Ninja- Laravel Tutorial](https://youtu.be/zckH4xalOns) [Quicksand](https://fonts.google.com/specimen/Quicksand) [MyColorSpace](https://mycolor.space/) [JokeAPI](https://v2.jokeapi.dev/joke/Any) diff --git a/SayHiPython/Book.py b/SayHiPython/Book.py new file mode 100644 index 0000000..a20af90 --- /dev/null +++ b/SayHiPython/Book.py @@ -0,0 +1,14 @@ +class Book: + def __init__(self, name, author, publish_date): + self.name = name + self.author = author + self.publish_date = publish_date + + def change_publish_date(self, publish_date): + self.publish_date = new_publish_date + + def change_name(self, new_name): + self.name = new_name + + def get_book_info(self): + print(f"Book is {self.name} written by {self.author}. It is published at {self.publish_date}") diff --git a/Trailers/sayhi.png b/Trailers/sayhi.png new file mode 100644 index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@Q7wKoR<(t*8lstlCOs> zOnJ_{pZxLrX^>I$2Um)#C9&@BPP@{eKT~xC*}7SiM-(7e{b~xIsnA{e|DjuwZ-fnn z^A(eCzs!l5oF0?aO7(_(=J9bsf_=)rueVdDTzM4h6m z-_lPHbv$e=F9k099ogS7U6Oy?M*V`R$>s&a&a|XFpx&{lIL$Kno__trmh3zzI-kAw|9EK=(={pO@zm*FY$3C$aZ>&8K$PMzjaNNM3VG4n8&=!o^`=jj0z^j?7J?C`iFRaBcFS_aiI?9Y`-x=V;yMt%= zmN-2*Kg=D^<|{yHIU9^y`|#9nUmH@&pI_m*6oHdDOqKq}IO}B6C!7dnu&w2U2Ji@m zaf<2Q=)*ITK{P4mhwGWN{hrK#AVHXm>E|%-H~g5B6ePqRRL{iaT}Jpm2E!u@WFBJ_ z>lZBV!#Hxh1`clTD);w>=t@L|`79hG{s=Bk;3gDkM5|5BhVUSbFY4Zibg1`5hF@+on<2BNmgATsE(<)8~I#rc)VpJD{e9XAU^f#kxAbcL`&GDkB1X6v5M|)vxYQ_K1Ep8hWEA1 zh@y_75Bqmw3k^0y(SZYtN3kWDqcy?^)!*~y%W3P8;}8SabtOnXFzUzmt8mM`*S4GiwEyfEg_|I-9`@np@4NK7tj(aY9I`xW@$7)- G#s2}dSL?R` literal 0 HcmV?d00001 From 5c45b3558b91609d6ab31743472d82df6ef87157 Mon Sep 17 00:00:00 2001 From: Nisanur Bulut Date: Sun, 30 Jan 2022 19:30:12 +0300 Subject: [PATCH 2/2] updated readme and written book.py class --- SayHiPython/Book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SayHiPython/Book.py b/SayHiPython/Book.py index a20af90..26f8a38 100644 --- a/SayHiPython/Book.py +++ b/SayHiPython/Book.py @@ -4,7 +4,7 @@ def __init__(self, name, author, publish_date): self.author = author self.publish_date = publish_date - def change_publish_date(self, publish_date): + def change_publish_date(self, new_publish_date): self.publish_date = new_publish_date def change_name(self, new_name):