Created
May 29, 2023 04:18
-
-
Save rongpenl/033644837a8fdff6ff4f39b9f40953fb to your computer and use it in GitHub Desktop.
Cracking Intermediate Python Episode 1: Context Manager
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
class Coach: | |
def warm_up_players(self): | |
print("The coach is warming up the players.") | |
def host_retro_meeting(self): | |
print("The coach is having a retro meeting after the game.") | |
def coach_game(self): | |
print("The game is in progress.") | |
if __name__ == "__main__": | |
coach = Coach() | |
coach.warm_up_players() | |
coach.coach_game() | |
coach.host_retro_meeting() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment