Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Python3: Class I : Person (Simple)
#python 3.5.2 class Person: def __init__(self,name,surname,address,phone): self.name=name self.surname=surname self.address=address self.phone=phone def getName(self): return self.name def getSurname(self): return self.surname def getAddress(self): return self.address def getPhone(self): return self.phone def printMe(self): print("--------------------------") print("Name: ",self.name) print("Surname: ",self.surname) print("Address: ",self.address) print("Phone: ",self.phone) print("--------------------------") tasos=Person("Tasos","XYZ","Papa 23","00000000") betty=Person("Betty","XYZ","Popa 44","00000000") tasos.printMe() betty.printMe()
run
|
edit
|
history
|
help
0
HW Descending Order Final
Skillenza Common subjects
inverse matrix gauss jordan
super
Right_Align_Text
A list is shuffled and reshuffled till the 0th index of the list matches
lambda_filter_map_reduce.py
(P2) Ciągi 2
Byear
Lakshya chouhan