Skip to content

Instantly share code, notes, and snippets.

@Neptune998
Last active Aug 14, 2020
Embed
What would you like to do?
class Website:
def __init__(self, name, url):
self.name = name
self.url = url
def print_url(self):
print("Name of Website " + self.name + "and URL "+ self.url)
web1 = Website("NeptuneWorld", "https://neptuneworld.in/")
web1.print_url()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment