-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.py
More file actions
30 lines (22 loc) · 730 Bytes
/
code.py
File metadata and controls
30 lines (22 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Mentor:
'common base class'
typeof = 'l'
def __init__(self,name):
self.name = name
def setMentorOrLearner(self):
val = input("Are you are a mentor? If yes,click Y else N")
if val == 'Y':
Mentor.typeof = 'm'
return Mentor.typeof
def addStacks(self):
stack=[]
a = input("Add field of interest or expertise")
stack.append('a')
def setAvailableTime(self):
if Mentor.typeof == 'm'
time = input("set available time please")
def getMentor(self):
emp1 = Mentor("Gayathri")
if emp1.setMentorOrLearner() == 'm':
emp1.setAvailableTime()
emp1.addStacks()