Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"files.autoSave": "afterDelay",
"screencastMode.onlyKeyboardShortcuts": true,
"terminal.integrated.fontSize": 18,
"workbench.activityBar.visible": true,
"workbench.colorTheme": "Default Light Modern",
"workbench.fontAliasing": "antialiased",
"workbench.statusBar.visible": true,
Expand Down
11 changes: 9 additions & 2 deletions Start/Ch 1/definition_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@


# TODO: create a basic class

# The __init__ is also known as the initializer function in Python.
# It is the first thing that is called in a class before other functions.
class Book:
def __init__(self, title):
self.title = title

# TODO: create instances of the class

book1 = Book("Brave New World")
book2 = Book("War and Peace")

# TODO: print the class and property
print(book1)
print(book1.title)