Created
September 2, 2019 00:47
-
-
Save JovaniTarnowski/696c8ddec98e8352a4a0fefc35845edf to your computer and use it in GitHub Desktop.
Medium-class
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
#Create a class Called Human. | |
class Human: | |
def __init__(self, name): | |
self.name = name | |
self.surname = surname | |
#This Method Prints the Human's Name. | |
def print_name(self): | |
print("Hello my name is {} {} !".format(self.name, self.surname)) | |
Male = Human('Jovani') | |
Male.print_name() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment