Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Contact Class
''' Created on 01.11.2018 @author: Byron.Chen ''' class Contact: def _init_(self, Email, Phone, SocialMedia): self._Email = [] self._Phone = [] self._SocialMedia = [] def AddEmail(self, e): self._Email.append(e) def DeleteEmail(self, i): self._Email.remove(i + 1) def GetEmail(self, i): return self._Email(i + 1) def AddPhone(self, p): self._Phone.append(p) def DeletePhone(self, i): self._Phone.remove(i + 1) def GetPhone(self, i): return self._Phone(i + 1) def AddSocialMedia(self, SM): self._SocialMedia.append(SM) def DeleteSocialMedia(self, i): self._SocialMedia.remove(i + 1) def GetSocialMedia(self, i): return self._SocialMedia(i + 1)
run
|
edit
|
history
|
help
0
test3.py
Dictionary example
My code 4
innerclass.py
Q1
RNG
Lesson4
quiz3
RESTRUCTURADO
isPalindrome.py