-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask3.py
More file actions
26 lines (25 loc) · 881 Bytes
/
task3.py
File metadata and controls
26 lines (25 loc) · 881 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
def glances(*args: str, kindly=None, large=None, order=None):
indifferent = []
reproachful = []
offended = []
if kindly == None:
kindly = 'ae'
for i in args:
if kindly not in i:
if large == None:
if len(i) <= 7:
indifferent.append(i)
if i.istitle():
if large != None:
if len(i) <= large:
reproachful.append(i)
else:
reproachful.append(i)
for i in args:
if i not in indifferent and i not in reproachful:
offended.append(i)
if order:
indifferent = sorted(indifferent, key=order)
reproachful = sorted(reproachful, key=order)
offended = sorted(offended, key=order)
return {'indifferent': indifferent, 'reproachful': reproachful, 'offended': offended}