- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
Latest commit
39 lines (29 loc) · 694 Bytes
/
Copy pathtest.py
File metadata and controls
39 lines (29 loc) · 694 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
31
32
33
34
35
36
37
defgetmin(a, b, c):
ifa<=banda<=c:
print(a)
elifb<=aandb<=c:
print(b)
else:
print(c)
deffiltername(name):
iflen(name) >3:
returnname[:3]
eliflen(name) <3:
returnname+" "* (3-len(name))
returnname
deffilternames(names):
re= []
forninnames:
iflen(n) !=3:
re+= [filtername(n)]
returnre
defprintsort2(x):
foriinrange(len(x) -1):
forjinrange(1+i, len(x)):
ifx[i] >x[j]:
x[i], x[j] =x[j], x[i]
forainx:
print(a, end=" ")
defprint_hell(inp):
if"안녕"ininp:
print("Hello")