Created
November 16, 2023 17:44
-
-
Save fsndzomga/3354260209f77e5ffc702c44e6dfd5a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 WebApp: | |
def __init__(self): | |
self.data = {} | |
def fetch_data(self, url): | |
# code to fetch data from a URL | |
self.data = {"example": "data"} | |
def process_data(self): | |
# code to process data | |
self.data = {k: v.upper() for k, v in self.data.items()} | |
def display_data(self): | |
# code to display data | |
print(self.data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment