forked from ElvinKim/2018_1_ITA_python_class_C
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path20180126.py
More file actions
48 lines (26 loc) · 691 Bytes
/
Copy path20180126.py
File metadata and controls
48 lines (26 loc) · 691 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
38
39
40
41
42
43
44
45
46
47
48
"""
함수 - 2
"""
print("{:=^20}".format(" function return "))
def calculation(a, b):
return a + b, a - b, a * b, a / b
print(calculation(1, 2))
def sum_sub(a, b):
return a + b
return a - b
print(sum_sub(1, 2))
print("{:=^30}".format(" function param init "))
def login(email, password, remember_me=False):
print("email :", email)
print("password :", password)
if remember_me:
print("나를 기억해!")
login("[email protected]", 123)
login("[email protected]", 123, True)
print("{:=^30}".format(" global "))
n = 1
def make_10():
global n
n = 10
make_10()
print(n)