Skip to content
Snippets Groups Projects
Commit b6379280 authored by KimTaeeun's avatar KimTaeeun
Browse files

Upload New File

parent 84069cab
No related branches found
No related tags found
No related merge requests found
def hello():
print("hello world")
print("my name is taeeun")
def add(a,b):
sums = a+b
return sums
def minus(a):
a = -a
return a
def minus2(a): #이거는 안바뀜
a=-a
def minuslist(l): #이거는 바뀜
l[0] = 20
hello()
a = 675
b = 754
k = add(a,b)
print("입력값의 합은")
print(k)
print("\n")
print(minus(a))
print(minus2(a))
print("\n")
l = [1,2]
print(l)
minuslist(l)
print(l)
print("\n")
def print_personnel(name='김태은', position='student', nationality='Korea'):
print('name = {0}'.format(name))
print('position = {0}'.format(position))
print('nationality = {0}'.format(nationality))
print_personnel(name='박상현')
print("\n")
print_personnel(name='박상현', nationality='Japan')
print("\n")
print_personnel(position='인턴')
print("\n")
def fl(*a):
for x in a:
print (type(x),x)
print(fl((1,2,3),456,"김태은",{'a' : 'taeeun'}))
print("\n")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment