Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Creating Person class
#python 3.5.2 class Person(object): def __init__(self, first_name, last_name): """ Constructor function that sets properties """ self.first_name = first_name self.last_name = last_name self.full_name = self.first_name + " " + self.last_name self.name = self.last_name + ", " + self.first_name if __name__ == "__main__": person1 = Person("Anders", "Rossum") print(person1.full_name) print(person1.name)
run
|
edit
|
history
|
help
0
LinkedList in Python
DISPLAY
PyBoolNone
denemeler
pip install pyowm==2.7.1
Game2
RANDOM NUMBER
Mengira luas dan perimeter segi tiga
just Comment
linked_lists