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
Page 353 ex 42
Hi.py
PyMeta
pip install pyowm==2.7.1
fibonacciseries
E
Rectangle Perimiter
Add missing person
PyMenuClass
Ej2_PYTHON_203700377.