FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SayHiCode/SayHiPython/Book.py at master · NisanurBulut/SayHiCode · GitHub
NisanurBulut
/
SayHiCode
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
19
Code
Issues
0
Pull requests
33
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SayHiCode
/
SayHiPython
/
Book.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (11 loc) · 458 Bytes
Breadcrumbs
SayHiCode
/
SayHiPython
/
Book.py
Copy path
File metadata and controls
14 lines (11 loc) · 458 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
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
,
new_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
}
"
)
Back
|
FazBrowse Home
|
New Git URL