-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
efb0a86
commit d8ceeb2
Showing
16 changed files
with
102 additions
and
92 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class Pastikom: | ||
|
||
def __init__(self, yourname : str, email : str) -> None: | ||
def __init__(self, yourname: str, email: str) -> None: | ||
"""Magic Method | ||
Kelas Pastikom memiliki 2 parameter dan/atau argumen | ||
:param yourname: tuliskan nama mu di parameter pertama | ||
|
@@ -16,14 +16,14 @@ def __init__(self, yourname : str, email : str) -> None: | |
|
||
def __repr__(self) -> str: | ||
"""Fungsi representasi nilai parameter dan/atau argumen""" | ||
return f'Nama: { self.name }\nEmail: { self.email }' | ||
return f"Nama: { self.name }\nEmail: { self.email }" | ||
|
||
def __del__(self) -> str: | ||
"""Fungsi informasi jika ada nilai parameter dan/atau argumen yang terhapus""" | ||
return "Oh tidaaaak! Data sudah terhapus :'(" | ||
|
||
|
||
nama : str = "Bellshade" | ||
email : str = "[email protected]" | ||
if __name__ == '__main__': | ||
nama: str = "Bellshade" | ||
email: str = "[email protected]" | ||
if __name__ == "__main__": | ||
Pastikom(nama, email) |
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
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
Oops, something went wrong.